blob: bc278caad0f988d7394f8d144b62c83739f3caf6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package mill.testng;
import org.scalatools.testing.*;
public class TestNGFramework implements Framework {
public String name(){ return "TestNG"; }
public Fingerprint[] tests(){
return new Fingerprint[]{
new Annotated("org.testng.annotations.Test")
};
}
public Runner testRunner(ClassLoader testClassLoader, Logger[] loggers){
return new TestNGRunner(testClassLoader, loggers, sharedState);
}
private TestRunState sharedState = new TestRunState();
}
class Annotated implements AnnotatedFingerprint{
String annotationName;
public Annotated(String annotationName) {
this.annotationName = annotationName;
}
public String annotationName(){return annotationName;}
public boolean isModule(){return false;}
}
|