if (expectError && !hasError)
fail("No error detected: "+expectError);
}
public static TestSuite suite() {
TestSuite rslt = new TestSuite();
rslt.setName("Examples from documentation");
for (int sp = 0; sp < specs.length; sp++) {
TestSuite spec = new TestSuite();
String specName = specs[sp].name();
spec.setName(specName);
// if (!specName.equals("http"))
// continue;
if (specs[sp].isIRISpec())
addAllTestsFromExamples(sp, spec);
addExamples(sp,null,specs[sp],spec);
if (spec.countTestCases()>0)
rslt.addTest(spec);
}
// if (false)
addAllTestsFromExamples(-1, rslt);
return rslt;