use of com.sun.tck.lib.tgf.DataFactory in project jtharness by openjdk.
the class Examples method test_05_02_04.
@Test
public void test_05_02_04() {
@TestGroup
class TestTransformingIterator {
Values multiplyValues = DataFactory.createValues(new Comparable<?>[][] { { 1 }, { 3 } }).filter((Values.Transformer1<Object[]>) DataFactory::createRow);
@TestCase
@TestData("multiplyValues")
public void testToString(Integer d) {
}
}
com.oracle.tck.lib.autd2.TestResult s = TU.runTestGroup(new TestTransformingIterator());
Assert.assertTrue(s.isOK());
Assert.assertEquals("test cases: 1; all passed", s.getMessage());
}
use of com.sun.tck.lib.tgf.DataFactory in project jtharness by openjdk.
the class Examples method test_08.
@Test
public void test_08() {
@TestGroup
class TestTransformingIterator {
Values multiplyValues = DataFactory.createValues(new Comparable<?>[][] { { 1, 2 }, { 3, 4 } }).filter((Values.Transformer1<Object[]>) DataFactory::createRow);
@TestCase
@TestData("multiplyValues")
public void testToString(Comparable<?> a, Comparable<?> b) {
}
}
com.oracle.tck.lib.autd2.TestResult s = TU.runTestGroup(new TestTransformingIterator());
Assert.assertTrue(s.isOK());
Assert.assertEquals("test cases: 1; all passed", s.getMessage());
}
Aggregations