Hello,
I have a TestNG method
@BeforeClass
public void startRegistry() {
registry =
RegistryBuilder.buildAndStartupRegistry(TestModule.class);
hub = registry.getService(RegistryShutdownHub.class);
ConfigurationService configurationService =
registry.getService(ConfigurationService.class);
Resource configResource = new ClasspathResource("my.properties");
configuration =
configurationService.getConfiguration(configResource);
}
The TestModule is almost empty:
public class TestModule {
public static void bind(ServiceBinder binder) {
binder.bind(WorkQueue.class);
}
}
It just contains one of MY services for some other test.
What do I have to do, to get the ConfigurationService out of the Registry?
Now I am getting
java.lang.RuntimeException: No service implements the interface
org.chenillekit.core.services.ConfigurationService.
when the test runs.
Regards,
Borut