@Test public void testAddGraphId() { GradoopId additionalId = GradoopId.get(); GradoopIdSet graphIds = GradoopIdSet.fromExisting(GradoopId.get(), GradoopId.get()); TemporalGraphElement elementMock = mock(TemporalGraphElement.class, withSettings() .useConstructor(GradoopId.get(), "x", null, graphIds, null, null) .defaultAnswer(CALLS_REAL_METHODS)); elementMock.addGraphId(additionalId); graphIds.add(additionalId); assertEquals(graphIds, elementMock.getGraphIds()); }
@Override public void addGraphId(GradoopId graphId) { if (graphIds == null) { graphIds = new GradoopIdSet(); } graphIds.add(graphId); }
TemporalGraphElement extends TemporalElement implements GraphElement { @Override public void addGraphId(GradoopId graphId) { if (graphIds == null) { graphIds = new GradoopIdSet(); } graphIds.add(graphId); } }
TemporalGraphElement extends TemporalElement implements GraphElement { @Override public void addGraphId(GradoopId graphId) { if (graphIds == null) { graphIds = new GradoopIdSet(); } graphIds.add(graphId); } TemporalGraphElement();   TemporalGraphElement(GradoopId id, String label, Properties properties,
    GradoopIdSet graphIds, Long validFrom, Long validTo); }
TemporalGraphElement extends TemporalElement implements GraphElement { @Override public void addGraphId(GradoopId graphId) { if (graphIds == null) { graphIds = new GradoopIdSet(); } graphIds.add(graphId); } TemporalGraphElement();   TemporalGraphElement(GradoopId id, String label, Properties properties,
    GradoopIdSet graphIds, Long validFrom, Long validTo); @Override GradoopIdSet getGraphIds(); @Override void addGraphId(GradoopId graphId); @Override void setGraphIds(GradoopIdSet graphIds); @Override void resetGraphIds(); @Override int getGraphCount(); @Override String toString(); }
TemporalGraphElement extends TemporalElement implements GraphElement { @Override public void addGraphId(GradoopId graphId) { if (graphIds == null) { graphIds = new GradoopIdSet(); } graphIds.add(graphId); } TemporalGraphElement();   TemporalGraphElement(GradoopId id, String label, Properties properties,
    GradoopIdSet graphIds, Long validFrom, Long validTo); @Override GradoopIdSet getGraphIds(); @Override void addGraphId(GradoopId graphId); @Override void setGraphIds(GradoopIdSet graphIds); @Override void resetGraphIds(); @Override int getGraphCount(); @Override String toString();  }