Package com.github.searls.jasmine.model

Examples of com.github.searls.jasmine.model.ScriptSearch


    when(directory.canRead()).thenReturn(true);
  }

  @Test
  public void returnsEmptyWhenDirectoryDoesNotExist() throws IOException {
    List<String> result = subject.find(new ScriptSearch(new File("No way does this file exist"),null,null));

    assertThat(result,is(Collections.emptyList()));
  }
View Full Code Here


  public void addsScriptLocationScannerFinds() throws IOException {
    String expected = "full blown file";
    when(scansDirectory.scan(directory, INCLUDES, EXCLUDES)).thenReturn(asList(FILE_LOCATION));
    when(convertsFileToUriString.convert(new File(directory,FILE_LOCATION))).thenReturn(expected);

    List<String> result = subject.find(new ScriptSearch(directory,INCLUDES,EXCLUDES));

    assertThat(result,hasItem(expected));
  }
View Full Code Here

  @Override
  public void execute() throws MojoExecutionException, MojoFailureException {

    this.loadResources();

    this.sources = new ScriptSearch(this.jsSrcDir,this.sourceIncludes,this.sourceExcludes);
    this.specs = new ScriptSearch(this.jsTestSrcDir,this.specIncludes,this.specExcludes);

    try {
      this.run();
    } catch(MojoFailureException e) {
      throw e;
View Full Code Here

TOP

Related Classes of com.github.searls.jasmine.model.ScriptSearch

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.