Wrapper for Cobertura's main classes.
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
checkCoverage(CoberturaExtension configuration) |
|
java.lang.Object |
compareVersions(java.lang.Object a, java.lang.Object b)Rough hack that compares 2 version numbers. |
|
void |
generateCoverageReport(CoberturaExtension configuration, java.lang.String format, java.util.List<java.lang.String> sourceDirectories) |
|
boolean |
hasLength(java.lang.String s) |
|
void |
instrument(CoberturaExtension configuration, java.lang.String baseDir, java.lang.String destinationDir, java.util.List<java.lang.String> instrumentDirs) |
|
boolean |
isSecurityException(java.lang.Object e)helper method to check to see if a given exception is a SecurityException, or the cause of an InvocationTargetException. |
|
java.lang.Object |
mergeCoverageReports(CoberturaExtension configuration) |
|
CoberturaRunner |
withClasspath(java.util.Set<java.io.File> classpath) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Rough hack that compares 2 version numbers. It assumes that all version numbers follow the normal numbering conventions of strictly numbers, separated by dots, with a possible snapshot version at the end. We also treat a snapshot version the same as its non snapshot equivalent, which is good enough for our purposes.
helper method to check to see if a given exception is a SecurityException, or the cause of an InvocationTargetException. We need to check both because we're invoking the Cobertura Main class via reflection, which will wrap exceptions thrown by the invoked code.
e - the exception to check.true if the underlying cause of the given exception is
a SecurityException