Examples of IOUtilsWrapper


Examples of com.github.searls.jasmine.io.IOUtilsWrapper

  @Test
  public void shouldReadCustomTemplateWhenOneIsProvided() throws IOException {
    mockStatic(FileUtils.class);

    File expected = mock(File.class);
    IOUtilsWrapper ioUtilsWrapper = mock(IOUtilsWrapper.class);
    this.generatorConfiguration = this.initGenerator(ioUtilsWrapper,null,expected);
    this.generatorConfiguration.getRunnerTemplate();

    verifyStatic(times(1));
    FileUtils.readFileToString(expected);
View Full Code Here

Examples of com.github.searls.jasmine.io.IOUtilsWrapper

    FileUtils.readFileToString(expected);
  }

  @Test
  public void shouldReadSpecRunnerTemplateWhenOneIsProvided() throws IOException {
    IOUtilsWrapper ioUtilsWrapper = mock(IOUtilsWrapper.class);
    this.generatorConfiguration = this.initGenerator(ioUtilsWrapper,SpecRunnerTemplate.REQUIRE_JS,null);
    this.generatorConfiguration.getRunnerTemplate();
    verify(ioUtilsWrapper, times(1)).toString(SpecRunnerTemplate.REQUIRE_JS.getTemplate());
  }
View Full Code Here

Examples of com.github.searls.jasmine.io.IOUtilsWrapper

    verify(ioUtilsWrapper, times(1)).toString(SpecRunnerTemplate.REQUIRE_JS.getTemplate());
  }

  @Test
  public void shouldReadDefaultSpecRunnerTemplateWhenNoneIsProvided() throws IOException {
    IOUtilsWrapper ioUtilsWrapper = mock(IOUtilsWrapper.class);
    this.generatorConfiguration = this.initGenerator(ioUtilsWrapper,null,null);
    this.generatorConfiguration.getRunnerTemplate();
    verify(ioUtilsWrapper, times(1)).toString(SpecRunnerTemplate.DEFAULT.getTemplate());
  }
View Full Code Here

Examples of com.github.searls.jasmine.io.IOUtilsWrapper

  @Before
  public void setupGeneratorConfiguration() throws IOException{
    when(this.generatorConfiguration.getSourceEncoding()).thenReturn(SOURCE_ENCODING);
    when(this.generatorConfiguration.getReporterType()).thenReturn(ReporterType.HtmlReporter);
    when(this.generatorConfiguration.getScriptResolver()).thenReturn(this.scriptResolver);
    when(this.generatorConfiguration.getRunnerTemplate()).thenReturn(new IOUtilsWrapper().toString(SpecRunnerTemplate.DEFAULT.getTemplate()));
    this.subject = new DefaultSpecRunnerHtmlGenerator(this.generatorConfiguration);
  }
View Full Code Here

Examples of com.github.searls.jasmine.io.IOUtilsWrapper

  private final String specDirectoryName;
  private final int autoRefreshInterval;
  private final boolean autoRefresh;

  public HtmlGeneratorConfiguration(ReporterType reporterType, JasmineConfiguration configuration, ScriptResolver scriptResolver) throws IOException {
    this(new IOUtilsWrapper(), reporterType, configuration, scriptResolver);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.