Skip to content

Commit

Permalink
added visibleForTesting for test convenience constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
khappucino committed Apr 19, 2018
1 parent 7898551 commit bf16048
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.xjeffrose.xio.application;

import com.google.common.annotations.VisibleForTesting;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigFactory;
Expand Down Expand Up @@ -56,6 +57,7 @@ private ApplicationConfig(Config config, XioTracing tracing) {
this.tracing = tracing;
}

@VisibleForTesting
public ApplicationConfig(Config config, Function<Config, XioTracing> tracingSupplier) {
this(config, tracingSupplier.apply(config));
}
Expand Down

0 comments on commit bf16048

Please sign in to comment.