forked from alcestes/scribble-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoodTest.java
More file actions
26 lines (22 loc) · 835 Bytes
/
Copy pathGoodTest.java
File metadata and controls
26 lines (22 loc) · 835 Bytes
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
package scribtest;
import java.util.Collection;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
// For running all tests under the specified directory as good tests
// Needs -Dtest.dir=[test root dir] system property -- Eclipse VM arg: -Dtest.dir=${selected_resource_loc}
@RunWith(value = Parameterized.class)
public class GoodTest extends AllTest
{
public GoodTest(String example, boolean isBadTest)
{
super(example, isBadTest);
}
@Parameters(name = "{0}")
public static Collection<Object[]> data()
{
//String dir = ClassLoader.getSystemResource(AllTest.GOOD_ROOT).getFile(); // No: checkTestDirProperty does this
String dir = AllTest.GOOD_ROOT;
return Harness.checkTestDirProperty(AllTest.GOOD_TEST, dir);
}
}