Skip to content

Commit

Permalink
Fix styles and tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-sheng committed Nov 6, 2023
1 parent 3281863 commit 679c86d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public abstract class MockModuleManager extends ModuleManager {
private final Map<String, ModuleProviderHolder> moduleProviderHolderMap = Maps.newHashMap();

public MockModuleManager() {
super("Mock");
init();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.Enumeration;
import java.util.Properties;
import java.util.ServiceLoader;
import org.apache.logging.log4j.core.util.Loader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void testInit() throws ServiceNotProvidedException, ModuleNotFoundExcepti
configuration.addModule("BaseA").addProviderConfiguration("P-A", new Properties());
configuration.addModule("BaseB").addProviderConfiguration("P-B", new Properties());

ModuleManager manager = new ModuleManager();
ModuleManager manager = new ModuleManager("Test");
manager.init(configuration);

BaseModuleA.ServiceABusiness1 serviceABusiness1 = manager.find("BaseA")
Expand All @@ -52,7 +52,7 @@ public void testModuleConfigInit() throws ModuleConfigException, ModuleNotFoundE
settings.put("attr4", true);
configuration.addModule("BaseA").addProviderConfiguration("P-A", settings);

ModuleManager manager = new ModuleManager();
ModuleManager manager = new ModuleManager("Test");
manager.init(configuration);

final ModuleServiceHolder provider = manager.find("BaseA").provider();
Expand All @@ -72,7 +72,7 @@ public void testModuleMissing() {
configuration.addModule("BaseA").addProviderConfiguration("P-A", new Properties());
configuration.addModule("BaseB").addProviderConfiguration("P-B2", new Properties());

ModuleManager manager = new ModuleManager();
ModuleManager manager = new ModuleManager("Test");
manager.init(configuration);
});
}
Expand All @@ -84,7 +84,7 @@ public void testCycleDependency() {
configuration.addModule("BaseA").addProviderConfiguration("P-A2", new Properties());
configuration.addModule("BaseB").addProviderConfiguration("P-B3", new Properties());

ModuleManager manager = new ModuleManager();
ModuleManager manager = new ModuleManager("Test");
manager.init(configuration);
});
}
Expand Down

0 comments on commit 679c86d

Please sign in to comment.