Examples of PathMappingIterator


Examples of org.springframework.data.neo4j.support.path.PathMappingIterator

            @Override
            public Integer mapPath(Path path) {
                return counter.incrementAndGet();
            }
        };
        Iterable<Integer> result = new PathMappingIterator().mapPaths(paths(), pathMapper);
        assertEquals(0, counter.get());
        for (Integer integer : result) ;
        assertEquals(PATHS_COUNT, counter.get());
    }
View Full Code Here

Examples of org.springframework.data.neo4j.support.path.PathMappingIterator

            @Override
            public void eachPath(Path path) {
                counter.incrementAndGet();
            }
        };
        Iterable<Void> result = new PathMappingIterator().mapPaths(paths(), pathMapper);
        assertEquals(PATHS_COUNT, counter.get());
        assertNull("no result",result);
        assertEquals(PATHS_COUNT, counter.get());
    }
View Full Code Here

Examples of org.springframework.data.neo4j.support.path.PathMappingIterator

        return Arrays.asList(paths);
    }

    private Iterable<Integer> runAndCheckMode(int countAfterMap, int countAfterIteration, IterationController.IterationMode iterationMode) {
        TestPathMapper pathMapper = new TestPathMapper(iterationMode);
        Iterable<Integer> result = new PathMappingIterator().mapPaths(paths(), pathMapper);
        assertEquals(countAfterMap, pathMapper.counter);
        if (result!=null) for (Integer integer : result) ;
        assertEquals(countAfterIteration, pathMapper.counter);
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.