Package com.github.searls.jasmine.mojo

Examples of com.github.searls.jasmine.mojo.AbstractJasmineMojo


    assertThat(specRunnerHtmlGeneratorFactory.createHtmlGenerator(setupWithTemplate(SpecRunnerTemplate.DEFAULT)), instanceOf(DefaultSpecRunnerHtmlGenerator.class));
  }

  @Test
  public void shouldCreateHtmlGeneratorWhenPassedValidInput() {
    AbstractJasmineMojo mock = mock(AbstractJasmineMojo.class);
    when(mock.getSpecRunnerTemplate()).thenReturn(SpecRunnerTemplate.DEFAULT);
    assertThat(specRunnerHtmlGeneratorFactory.create(ReporterType.HtmlReporter, mock, mock(ScriptResolver.class)), instanceOf(DefaultSpecRunnerHtmlGenerator.class));
  }
View Full Code Here


    assertThat(specRunnerHtmlGeneratorFactory.create(ReporterType.HtmlReporter, mock, mock(ScriptResolver.class)), instanceOf(DefaultSpecRunnerHtmlGenerator.class));
  }

  @Test
  public void shouldWrapIOException() throws IOException {
    AbstractJasmineMojo mock = mock(AbstractJasmineMojo.class);
    when(mock.getSpecRunnerTemplate()).thenReturn(SpecRunnerTemplate.DEFAULT);
    ScriptResolver mock1 = mock(ScriptResolver.class);
    // doThrow(new IOException("Foo")).when(mock1).resolveScripts();
    try {
      specRunnerHtmlGeneratorFactory.create(ReporterType.HtmlReporter, mock, mock1);
    } catch (InstantiationError e) {
View Full Code Here

TOP

Related Classes of com.github.searls.jasmine.mojo.AbstractJasmineMojo

Copyright © 2018 www.massapicom. 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.