this.generatorConfiguration = this.initGenerator(null,SpecRunnerTemplate.REQUIRE_JS,null);
assertSame(SpecRunnerTemplate.REQUIRE_JS, this.generatorConfiguration.getSpecRunnerTemplate());
}
private HtmlGeneratorConfiguration initGenerator(IOUtilsWrapper ioUtilsWrapper, SpecRunnerTemplate template, File customTemplate) throws IOException {
JasmineConfiguration mock = mock(JasmineConfiguration.class);
when(mock.getSpecRunnerTemplate()).thenReturn(template);
when(mock.getCustomRunnerTemplate()).thenReturn(customTemplate);
return new HtmlGeneratorConfiguration(ioUtilsWrapper, ReporterType.JsApiReporter, mock, mock(ScriptResolver.class));
}