use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_5_thirdOut_pseudoMult.
@Test
public void test_5_thirdOut_pseudoMult() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return i != 2 ? i : null;
}
}).pseudoMultiply("a", "b", "c");
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 0, "a" });
expected.add(new Object[] { 1, "b" });
expected.add(new Object[] { 0, "c" });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_5_severalInTheMiddle_pseudoMult.
@Test
public void test_5_severalInTheMiddle_pseudoMult() {
Values values = createColumn(0, 1, 2, 3, 4);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return i != 1 && i != 2 ? i : null;
}
}).pseudoMultiply("a", "b");
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 0, "a" });
expected.add(new Object[] { 3, "b" });
expected.add(new Object[] { 4, "a" });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_nothingLeft_intersect_1.
@Test
public void test_nothingLeft_intersect_1() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
}).intersect(7, 8, 9);
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_multiply_0.
@Test
public void test_nothingLeft_multiply_0() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
}).multiply(7, 8, 9);
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_thirdOut.
@Test
public void test_5_thirdOut() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return i != 2 ? i : null;
}
}).multiply("a", "b", "c");
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 0, "a" });
expected.add(new Object[] { 0, "b" });
expected.add(new Object[] { 0, "c" });
expected.add(new Object[] { 1, "a" });
expected.add(new Object[] { 1, "b" });
expected.add(new Object[] { 1, "c" });
ValuesComparison.compare(values, expected);
}
Aggregations