use of uk.gov.gchq.gaffer.operation.data.ElementSeed in project Gaffer by gchq.
the class AbstractOperationsTest method shouldGetElementsWithSeedsAndViewTest.
@Test
public void shouldGetElementsWithSeedsAndViewTest() throws OperationException {
// Given
final Graph graph = createGraph();
final List<Element> elements = getInputDataForGetAllElementsTest();
graph.execute(new AddElements.Builder().input(elements).build(), user);
// When
final List<ElementSeed> seeds = getSeeds();
final View view = getView();
final CloseableIterable<? extends Element> results = graph.execute(new GetElements.Builder().input(seeds).view(view).build(), user);
// Then
ElementUtil.assertElementEquals(getResultsForGetElementsWithSeedsAndViewTest(), results);
}
use of uk.gov.gchq.gaffer.operation.data.ElementSeed in project Gaffer by gchq.
the class StringVertexOperationsTest method getSeedsThatWontAppear.
@Override
protected List<ElementSeed> getSeedsThatWontAppear() {
final List<ElementSeed> seeds = new ArrayList<>();
seeds.add(new EntitySeed("vert100"));
seeds.add(new EntitySeed("notpresentvert100"));
seeds.add(new EntitySeed(""));
return seeds;
}
use of uk.gov.gchq.gaffer.operation.data.ElementSeed in project Gaffer by gchq.
the class TypeValueVertexOperationsTest method getSeedsThatWontAppear.
@Override
protected List<ElementSeed> getSeedsThatWontAppear() {
final List<ElementSeed> seeds = new ArrayList<>();
seeds.add(new EntitySeed(new TypeValue("type0", "vrt10000")));
seeds.add(new EntitySeed(new TypeValue("abc", "def")));
seeds.add(new EdgeSeed(new TypeValue("abc", "def"), new TypeValue("type0", "src0"), true));
return seeds;
}
use of uk.gov.gchq.gaffer.operation.data.ElementSeed in project Gaffer by gchq.
the class TypeValueVertexOperationsTest method getSeeds.
@Override
public List<ElementSeed> getSeeds() {
final List<ElementSeed> seeds = new ArrayList<>();
seeds.add(new EntitySeed(new TypeValue("type0", "vrt10")));
seeds.add(new EntitySeed(new TypeValue("type2", "src17")));
seeds.add(new EdgeSeed(new TypeValue("type1", "src11"), new TypeValue("type1", "dst12"), true));
return seeds;
}
Aggregations