use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombine_0_1_1_1.
@Test
public void testCombine_0_1_1_1() {
Values values = createColumn("a");
values = values.multiply(createColumn("b", "x"));
values = values.multiply(createColumn("c"));
values = values.multiply(createColumn("d"));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { "a", "b", "c", "d" });
expected.add(new Object[] { "a", "x", "c", "d" });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombineCombine_1_withEmpty_1.
@Test
public void testCombineCombine_1_withEmpty_1() {
Values values = createColumn(1, 2);
values = values.multiply(createColumn(3, 4));
values = values.multiply(createColumn(5)).multiply(createColumn());
List<Object[]> expected = new ArrayList<>();
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombine_0.
@Test
public void testCombine_0() {
Values values = createColumn(6775);
values = values.multiply(createColumn(3455));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 6775, 3455 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testRun_empty_4.
@Test
public void testRun_empty_4() {
final ArrayList<String> arrayList = new ArrayList<String>();
com.oracle.tck.lib.autd2.TestResult status = com.oracle.tck.lib.autd2.unittests.TU.runTestGroup(new BaseTestGroup() {
Values setupOne() {
return DataFactory.createColumn().pseudoMultiply(1, 3, 4);
}
@TestCase
@TestData("setupOne")
public void myTest(String s) {
arrayList.add(s);
}
}, TU.EMPTY_ARGV);
Assert.assertEquals(0, arrayList.size());
Assert.assertTrue(status.isOK());
Assert.assertEquals("Passed. test cases: 1; all passed", status.toString());
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombineCombine_1_empty.
@Test
public void testCombineCombine_1_empty() {
Values values = createColumn(1, 2).multiply(createRow());
values = values.multiply(createColumn(3, 4)).pseudoMultiply(createRow());
values = values.multiply(createColumn(5));
List<Object[]> expected = new ArrayList<Object[]>();
ValuesComparison.compare(values, expected);
}
Aggregations