com.atlassian.maven.plugin.clover.TestClass Maven / Gradle / Ivy
package com.atlassian.maven.plugin.clover;
import com.atlassian.maven.plugin.clover.internal.configuration.AbstractJavaEntity;
import java.util.ArrayList;
import java.util.List;
/**
* Matches a single test class. Example:
*
* <testClass>
* <name>.*Test</name>
* <super>WebTest</super>
* <annotation>@MyTestFramework</annotation>
* <package>org\.openclover\..*</package>
* <tag>@returns</tag>
* <testMethods>
* <testMethod><!-- see TestMethod --></testMethod> <!-- 0..N occurrences -->
* </testMethods>
* </testClass>
*
*/
public class TestClass extends AbstractJavaEntity {
/** A regex on which to match the test class's superclass. Optional. */
private String superclass;
/** A regex on which to match the test class's annotation. Optional. */
private String packageName;
private List testMethods = new ArrayList();
@SuppressWarnings("unused") // called by Maven when parsing MOJO configuration
public TestClass() {
}
public String getSuper() {
return superclass;
}
public void setSuper(String superclass) {
this.superclass = superclass;
}
public String getPackage() {
return packageName;
}
public void setPackage(String packageName) {
this.packageName = packageName;
}
public List getTestMethods() {
return testMethods;
}
public void setTestMethods(List testMethods) {
this.testMethods = testMethods;
}
}