Search in sources :

Example 1 with TransformingIterator

use of com.sun.tck.lib.tgf.TransformingIterator in project jtharness by openjdk.

the class TestTransformingIterator method testToString.

@Test
public void testToString() {
    TransformingIterator iterator = new TransformingIterator(new LeafIterator(1, 2, 3), new Object() {

        @Transform
        int transform(int i) {
            return i;
        }
    });
    Assert.assertEquals("0", iterator.toString());
}
Also used : TransformingIterator(com.sun.tck.lib.tgf.TransformingIterator) LeafIterator(com.sun.tck.lib.tgf.LeafIterator) Transform(com.sun.tck.lib.tgf.Transform) Test(org.junit.Test)

Aggregations

LeafIterator (com.sun.tck.lib.tgf.LeafIterator)1 Transform (com.sun.tck.lib.tgf.Transform)1 TransformingIterator (com.sun.tck.lib.tgf.TransformingIterator)1 Test (org.junit.Test)1