@Test @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_REMOVE_VERTICES, supported = false) @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_ADD_VERTICES) public void shouldSupportRemoveVerticesIfAVertexCanBeRemoved() throws Exception { try { graph.addVertex().remove(); fail(String.format(INVALID_FEATURE_SPECIFICATION, VertexFeatures.class.getSimpleName(), VertexFeatures.FEATURE_REMOVE_VERTICES)); } catch (Exception e) { validateException(Vertex.Exceptions.vertexRemovalNotSupported(), e); } }
@Test @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_REMOVE_VERTICES, supported = false) @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_ADD_VERTICES) public void shouldSupportRemoveVerticesIfAVertexCanBeRemoved() throws Exception { try { graph.addVertex().remove(); fail(String.format(INVALID_FEATURE_SPECIFICATION, VertexFeatures.class.getSimpleName(), VertexFeatures.FEATURE_REMOVE_VERTICES)); } catch (Exception e) { validateException(Vertex.Exceptions.vertexRemovalNotSupported(), e); } }
@Override public void remove() { throw Vertex.Exceptions.vertexRemovalNotSupported(); }
@Override public void remove() { throw vertexRemovalNotSupported(); }
@Override public void remove() { if (this.baseElement instanceof Vertex) throw Vertex.Exceptions.vertexRemovalNotSupported(); else throw Edge.Exceptions.edgeRemovalNotSupported(); }
@Override public void remove() { throw Vertex.Exceptions.vertexRemovalNotSupported(); }
@Override public void remove() { throw Vertex.Exceptions.vertexRemovalNotSupported(); }
@Override public void remove() { throw Vertex.Exceptions.vertexRemovalNotSupported(); }
@Override public void remove() { throw Vertex.Exceptions.vertexRemovalNotSupported(); }
@Override public void remove() { throw Vertex.Exceptions.vertexRemovalNotSupported(); }
@Override public void remove() { if (this.baseElement instanceof Vertex) throw Vertex.Exceptions.vertexRemovalNotSupported(); else throw Edge.Exceptions.edgeRemovalNotSupported(); }