com.atlassian.maven.plugin.clover.internal.scanner
Class TestSourceScanner

java.lang.Object
  extended by com.atlassian.maven.plugin.clover.internal.scanner.AbstractSourceScanner
      extended by com.atlassian.maven.plugin.clover.internal.scanner.TestSourceScanner
All Implemented Interfaces:
CloverSourceScanner

public class TestSourceScanner
extends AbstractSourceScanner

Computes the list of test source files to instrument.


Field Summary
static String SRC_TEST_GROOVY
           
static String SRC_TEST_JAVA
           
 
Constructor Summary
TestSourceScanner(CompilerConfiguration configuration, String outputSourceDirectory)
           
 
Method Summary
protected  List<String> getCompileSourceRoots()
          
protected  String getSourceDirectory()
           
 boolean isSourceRootForLanguage(String sourceRoot, com.atlassian.clover.spi.lang.Language language)
          
 void removeGroovySourceRoot(Set<String> sourceRoots)
          From a list of provided sourceRoots remove SRC_TEST_GROOVY root
 
Methods inherited from class com.atlassian.maven.plugin.clover.internal.scanner.AbstractSourceScanner
getConfiguration, getExcludedFiles, getSourceFilesToInstrument, getSourceFilesToInstrument, removeSourceRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SRC_TEST_JAVA

@NotNull
public static final String SRC_TEST_JAVA

SRC_TEST_GROOVY

@NotNull
public static final String SRC_TEST_GROOVY
Constructor Detail

TestSourceScanner

public TestSourceScanner(CompilerConfiguration configuration,
                         String outputSourceDirectory)
Method Detail

removeGroovySourceRoot

public void removeGroovySourceRoot(@NotNull
                                   Set<String> sourceRoots)
From a list of provided sourceRoots remove SRC_TEST_GROOVY root

Specified by:
removeGroovySourceRoot in class AbstractSourceScanner
Parameters:
sourceRoots - list of source roots
See Also:
SRC_TEST_GROOVY, AbstractSourceScanner.getSourceFilesToInstrument()

getCompileSourceRoots

protected List<String> getCompileSourceRoots()

Specified by:
getCompileSourceRoots in class AbstractSourceScanner

getSourceDirectory

protected String getSourceDirectory()
Specified by:
getSourceDirectory in class AbstractSourceScanner

isSourceRootForLanguage

public boolean isSourceRootForLanguage(@NotNull
                                       String sourceRoot,
                                       @NotNull
                                       com.atlassian.clover.spi.lang.Language language)



Copyright © 2015 Atlassian Pty Ltd. All Rights Reserved.