Package patterntesting.runtime.junit
Class AbstractTester
- java.lang.Object
-
- patterntesting.runtime.junit.AbstractTester
-
- Direct Known Subclasses:
ClassTester
,CloneableTester
,ComparableTester
,ImmutableTester
,ObjectTester
public abstract class AbstractTester extends java.lang.Object
This is the common superclass for some tester classes defined in this package.- Since:
- 1.6 (07.01.2015)
- Version:
- $Revision: 1.7 $
- Author:
- oliver
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTester()
Utility class - no need to instantiate it.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
removeClasses(java.util.Collection<?> classes, java.util.List<?> excluded)
Removes "excluded" from the given classes.protected static <T> void
removeClasses(java.util.Collection<java.lang.Class<? extends T>> classes, java.util.regex.Pattern... excluded)
Removes "excluded" from the given classes.
-
-
-
Method Detail
-
removeClasses
protected static void removeClasses(java.util.Collection<?> classes, java.util.List<?> excluded)
Removes "excluded" from the given classes. If one of the "excluded" class is an interface or abstract class all implementing or subclasses will be excluded.- Parameters:
classes
- the classesexcluded
- the excluded
-
removeClasses
protected static <T> void removeClasses(java.util.Collection<java.lang.Class<? extends T>> classes, java.util.regex.Pattern... excluded)
Removes "excluded" from the given classes.- Type Parameters:
T
- the generic type- Parameters:
classes
- the classesexcluded
- the excluded
-
-