use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_nothingLeft_multiply_2.
@Test
public void test_nothingLeft_multiply_2() {
Values values = createColumn(0, 1, 2).filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
});
values = values.multiply(values);
List<Object[]> expected = new ArrayList<Object[]>();
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_3.
@Test
public void test_3() {
Values values_2 = createColumn(1, 2).filter(new Object() {
@Transform
Values filter(int i) {
return createColumn(i, i + 1);
}
});
Values values_1 = createColumn(3, 4);
Values result = values_1.multiply(values_2);
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 3, 1 });
expected.add(new Object[] { 3, 2 });
expected.add(new Object[] { 3, 2 });
expected.add(new Object[] { 3, 3 });
expected.add(new Object[] { 4, 1 });
expected.add(new Object[] { 4, 2 });
expected.add(new Object[] { 4, 2 });
expected.add(new Object[] { 4, 3 });
ValuesComparison.compare(result, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_nothingLeft_multiply_1.
@Test
public void test_nothingLeft_multiply_1() {
Values values = createColumn(0, 1, 2).filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
});
values = createColumn("a", "b", "c").multiply(values);
List<Object[]> expected = new ArrayList<Object[]>();
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_nothingLeft_reduce.
@Test
public void test_nothingLeft_reduce() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
}).reduceTo(0.7);
List<Object[]> expected = new ArrayList<Object[]>();
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_5_firstOut_multiply.
@Test
public void test_5_firstOut_multiply() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return i != 0 ? i : null;
}
}).multiply("a", "b", "c");
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, "a" });
expected.add(new Object[] { 1, "b" });
expected.add(new Object[] { 1, "c" });
expected.add(new Object[] { 2, "a" });
expected.add(new Object[] { 2, "b" });
expected.add(new Object[] { 2, "c" });
ValuesComparison.compare(values, expected);
}
Aggregations