use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_nothingLeft_unite.
@Test
public void test_nothingLeft_unite() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
}).unite("a", "b", "c");
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { "a" });
expected.add(new Object[] { "b" });
expected.add(new Object[] { "c" });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_nothingLeft_1.
@Test
public void test_nothingLeft_1() {
Values values = createColumn(0).filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
});
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_6_firstOut.
@Test
public void test_6_firstOut() {
Values values = createColumn(0, 1, 2).filter(new Object() {
@Transform
Integer filter(int i) {
return i != 0 ? i : null;
}
});
values = createColumn("a", "b", "c").multiply(values);
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { "a", 1 });
expected.add(new Object[] { "a", 2 });
expected.add(new Object[] { "b", 1 });
expected.add(new Object[] { "b", 2 });
expected.add(new Object[] { "c", 1 });
expected.add(new Object[] { "c", 2 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_5_severalInTheMiddle.
@Test
public void test_5_severalInTheMiddle() {
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;
}
}).multiply("a", "b");
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 0, "a" });
expected.add(new Object[] { 0, "b" });
expected.add(new Object[] { 3, "a" });
expected.add(new Object[] { 3, "b" });
expected.add(new Object[] { 4, "a" });
expected.add(new Object[] { 4, "b" });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Transform in project jtharness by openjdk.
the class Filters method test_nothingLeft_doubleFiltering_1.
@Test
public void test_nothingLeft_doubleFiltering_1() {
Values values = createColumn(0, 1, 2);
values = values.filter(new Object() {
@Transform
Integer filter(int i) {
return null;
}
}).filter(new Object() {
// :-)
@Transform
Integer filter() {
return null;
}
});
List<Object[]> expected = new ArrayList<Object[]>();
ValuesComparison.compare(values, expected);
}
Aggregations