use of com.sun.tck.test.TestedAPI in project jtharness by openjdk.
the class FailingSimpleTestCases method testedAPI_packages.
@Test
public void testedAPI_packages() {
@TestedAPI(testedPackage = { "x.e.r", "s.e.g", "e.t.r" })
@TestGroup
class MyTest {
@TestCase
@TestedStatement("a statement")
public void testCase() {
Assert.fail();
}
}
TestResult s = TU.runTestGroup(new MyTest(), TU.EMPTY_ARGV);
Assert.assertTrue(!s.isOK());
Assert.assertEquals("test cases: 1; all failed", s.getMessage());
}
Aggregations