Package gw.test
Class TestClassFinder
- java.lang.Object
-
- gw.test.TestClassFinder
-
class TestClassFinder extends java.lang.ObjectCreated by IntelliJ IDEA. User: akeefer Date: Dec 6, 2010 Time: 4:29:46 PM To change this template use File | Settings | File Templates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTestClassFinder.TestClassFindType
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Predicate<IFile>>_iFileFiltersprivate java.util.List<Predicate<java.lang.String>>_packageFiltersprivate java.util.List<Predicate<IType>>_typeFiltersprivate java.util.List<java.lang.String>_withPackages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.TreeSet<TestSpec>findTests(java.util.List<IDirectory> gosuSourceRoots, java.util.List<IDirectory> javaClassRoots)private java.util.List<IType>findTestTypes(IDirectory entry, TestClassFinder.TestClassFindType findType)private voidfindTestTypesImpl(IDirectory root, IDirectory entry, TestClassFinder.TestClassFindType findType, java.util.ArrayList<IType> types)private booleanmatchesIncludedPackages(java.lang.String packageName)private booleanmatchesPackageFilters(java.lang.String packageName)private voidpossiblyAddTest(IFile entry, IDirectory root, TestClassFinder.TestClassFindType findType, java.util.ArrayList<IType> types)private booleanshouldConsiderFile(IFile entry, TestClassFinder.TestClassFindType findType)private booleanshouldConsiderType(IType type)private booleanshouldConsiderTypeName(java.lang.String typeName)
-
-
-
Field Detail
-
_packageFilters
private final java.util.List<Predicate<java.lang.String>> _packageFilters
-
_withPackages
private final java.util.List<java.lang.String> _withPackages
-
-
Method Detail
-
findTests
public java.util.TreeSet<TestSpec> findTests(java.util.List<IDirectory> gosuSourceRoots, java.util.List<IDirectory> javaClassRoots)
-
findTestTypes
private java.util.List<IType> findTestTypes(IDirectory entry, TestClassFinder.TestClassFindType findType)
-
findTestTypesImpl
private void findTestTypesImpl(IDirectory root, IDirectory entry, TestClassFinder.TestClassFindType findType, java.util.ArrayList<IType> types)
-
possiblyAddTest
private void possiblyAddTest(IFile entry, IDirectory root, TestClassFinder.TestClassFindType findType, java.util.ArrayList<IType> types)
-
shouldConsiderFile
private boolean shouldConsiderFile(IFile entry, TestClassFinder.TestClassFindType findType)
-
shouldConsiderTypeName
private boolean shouldConsiderTypeName(java.lang.String typeName)
-
matchesPackageFilters
private boolean matchesPackageFilters(java.lang.String packageName)
-
matchesIncludedPackages
private boolean matchesIncludedPackages(java.lang.String packageName)
-
shouldConsiderType
private boolean shouldConsiderType(IType type)
-
-