Example #1
0
 @BeforeClass
 public void init() {
   suite = eval.generateTestCases(manifest, web);
   suite.setName("W3C RDF1.1/XML test");
   suite.setUri(web);
   suite.setManifest(manifest);
 }
Example #2
0
  @DataProvider
  public static Object[][] data(Method mt) {
    String mn = mt.getName();
    String test = mn.substring(4, mn.length());
    List list;

    // 1. return all test cases
    if ("all".equalsIgnoreCase(test)) {
      list = suite.getTests();
    } else { // 2. return test case with certain type
      String testType = TestHelper.getValueByFieldName("test.w3c.model.TestType", test);
      if (testType == null) {
        return null;
      }
      list = suite.getTestCasesByType(testType);
    }
    return TestHelper.toObjectArray(list);
  }