use of org.apache.reef.tang.JavaConfigurationBuilder in project mist by snuspl.
the class GroupSplitterTest method createApplication.
private ApplicationInfo createApplication() throws InjectionException {
final JavaConfigurationBuilder jcb = Tang.Factory.getTang().newConfigurationBuilder();
jcb.bindNamedParameter(ApplicationIdentifier.class, "app" + appNum);
jcb.bindNamedParameter(JarFilePath.class, "");
appNum += 1;
final Injector injector = Tang.Factory.getTang().newInjector(jcb.build());
final QueryStarter queryStarter = mock(QueryStarter.class);
final QueryRemover queryRemover = mock(QueryRemover.class);
final ExecutionDags executionDags = mock(ExecutionDags.class);
injector.bindVolatileInstance(QueryStarter.class, queryStarter);
injector.bindVolatileInstance(QueryRemover.class, queryRemover);
injector.bindVolatileInstance(ExecutionDags.class, executionDags);
return injector.getInstance(ApplicationInfo.class);
}
Aggregations