use of com.tyndalehouse.step.core.service.BibleInformationService in project step by STEPBible.
the class FrontControllerTest method testGetControllerMethod.
/**
* tests that resolving method works
*
* @throws IllegalAccessException uncaught exception
* @throws InvocationTargetException uncaught exception
*/
@Test
public void testGetControllerMethod() throws IllegalAccessException, InvocationTargetException {
final BibleInformationService bibleInfo = mock(BibleInformationService.class);
final BibleController controllerInstance = new BibleController(bibleInfo, this.clientSessionProvider, null);
// when
final Method controllerMethod = this.fcUnderTest.getControllerMethod("getAllFeatures", controllerInstance, null, null);
// then
controllerMethod.invoke(controllerInstance);
verify(bibleInfo).getAllFeatures();
}
use of com.tyndalehouse.step.core.service.BibleInformationService in project step by STEPBible.
the class IndexAll method main.
/**
* main method
*
* @param args list of arguments
*/
public static void main(final String[] args) {
final BibleInformationService instance = Guice.createInjector(new StepCoreModule(), new Module() {
@Override
public void configure(final Binder binder) {
binder.bind(ClientSession.class).toProvider(new Provider<ClientSession>() {
@Override
public ClientSession get() {
// TODO Auto-generated method stub
return null;
}
});
}
}).getInstance(BibleInformationService.class);
instance.indexAll();
}
Aggregations