|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.units4j.AssertCoverage
public final class AssertCoverage
Assertion tool class for checking the test coverage.
| Nested Class Summary | |
|---|---|
static class |
AssertCoverage.AndClassFilter
Filter that combines two or more filters. |
static interface |
AssertCoverage.ClassFilter
Helper class to filter found classes. |
static class |
AssertCoverage.ExcludeListClassFilter
Uses a list of classes to exclude from the check. |
| Method Summary | |
|---|---|
static void |
assertEveryClassHasATest(File baseDir)
Asserts that a every class in the directory (or it's sub directories) has at least one test class. |
static void |
assertEveryClassHasATest(File baseDir,
AssertCoverage.ClassFilter classFilter)
Asserts that a every class in the directory (or it's sub directories) has at least one test class. |
static void |
assertEveryClassHasATest(File baseDir,
boolean recursive)
Asserts that a every class in the directory (or it's sub directories) has at least one test class. |
static void |
assertEveryClassHasATest(File baseDir,
boolean recursive,
AssertCoverage.ClassFilter classFilter)
Asserts that a every class in the directory (or it's sub directories) has at least one test class. |
static void |
assertEveryClassHasATest(Set<Class<?>> classes)
Asserts that a every class has at least one test class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final void assertEveryClassHasATest(Set<Class<?>> classes)
XxxxxTest,
where Xxxxx is the name of the class that is tested. The
class must contain at least one method annotated with Test.
classes - Set of classes - Cannot be null.public static final void assertEveryClassHasATest(File baseDir)
XxxxxTest, where Xxxxx is
the name of the class that is tested. The class must contain at least one
method annotated with Test. No special class filter applies.
baseDir - Root source directory like ("src/main/java").
public static final void assertEveryClassHasATest(File baseDir,
AssertCoverage.ClassFilter classFilter)
XxxxxTest, where Xxxxx is
the name of the class that is tested. The class must contain at least one
method annotated with Test.
baseDir - Root source directory like ("src/main/java").classFilter - Filter that decides if a class should have a corresponding
test or not.
public static final void assertEveryClassHasATest(File baseDir,
boolean recursive)
XxxxxTest, where Xxxxx is
the name of the class that is tested. The class must contain at least one
method annotated with Test. No special class filter applies.
baseDir - Root source directory like ("src/main/java").recursive - Should sub directories be included?
public static final void assertEveryClassHasATest(File baseDir,
boolean recursive,
AssertCoverage.ClassFilter classFilter)
XxxxxTest, where Xxxxx is
the name of the class that is tested. The class must contain at least one
method annotated with Test.
baseDir - Root source directory like ("src/main/java").recursive - Should sub directories be included?classFilter - Filter that decides if a class should have a corresponding
test or not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||