use of uk.gov.gchq.koryphe.impl.function.IterableConcat in project Gaffer by gchq.
the class GetWalksIT method shouldNotFilterWalksWhenNoPredicateSupplied.
@Test
public void shouldNotFilterWalksWhenNoPredicateSupplied() throws Exception {
final Conditional conditional = new Conditional();
conditional.setTransform(new OperationChain.Builder().first(new Map.Builder<>().first(new ExtractWalkEntities()).then(new IterableConcat()).build()).then(new ForEach.Builder<>().operation(new Map.Builder<>().first(new ExtractProperty(TestPropertyNames.PROP_1)).build()).build()).build());
final Iterable<Walk> walks = executeGetWalksApplyingConditional(conditional);
assertThat(getPaths(walks)).isEqualTo("AED,ABC");
}
use of uk.gov.gchq.koryphe.impl.function.IterableConcat in project Gaffer by gchq.
the class GetWalksIT method getWalksThatPassPredicateTest.
private Iterable<Walk> getWalksThatPassPredicateTest(final Predicate predicate) throws Exception {
final Conditional conditional = new Conditional();
conditional.setTransform(new OperationChain.Builder().first(new Map.Builder<>().first(new ExtractWalkEntities()).then(new IterableConcat()).build()).then(new ForEach.Builder<>().operation(new Map.Builder<>().first(new ExtractProperty(TestPropertyNames.PROP_1)).build()).build()).build());
conditional.setPredicate(predicate);
return executeGetWalksApplyingConditional(conditional);
}
Aggregations