@Test public void testGetTemplateGeneratorShouldReturnWithTemplateGenerator() { given(stubResourcePathProvider.getTemplatesPathAsString()).willReturn(CLASS); given(externalInitializer.loadExternalClass(CLASS, CLASS, TemplateGenerator.class)).willReturn(templateGenerator); TemplateGenerator actual = underTest.getTemplateGenerator(CLASS); Assert.assertEquals(actual, templateGenerator); }
public TemplateGenerator getTemplateGenerator(final String className) { return externalInitializer.loadExternalClass(className, stubResourcePathProvider.getTemplatesPathAsString(), TemplateGenerator.class); }
TemplateGeneratorInitializer { public TemplateGenerator getTemplateGenerator(final String className) { return externalInitializer.loadExternalClass(className, stubResourcePathProvider.getTemplatesPathAsString(), TemplateGenerator.class); } }
TemplateGeneratorInitializer { public TemplateGenerator getTemplateGenerator(final String className) { return externalInitializer.loadExternalClass(className, stubResourcePathProvider.getTemplatesPathAsString(), TemplateGenerator.class); }  }
TemplateGeneratorInitializer { public TemplateGenerator getTemplateGenerator(final String className) { return externalInitializer.loadExternalClass(className, stubResourcePathProvider.getTemplatesPathAsString(), TemplateGenerator.class); }  TemplateGenerator getTemplateGenerator(final String className); }
TemplateGeneratorInitializer { public TemplateGenerator getTemplateGenerator(final String className) { return externalInitializer.loadExternalClass(className, stubResourcePathProvider.getTemplatesPathAsString(), TemplateGenerator.class); }  TemplateGenerator getTemplateGenerator(final String className);  }