@Test @FeatureRequirement(featureClass = Graph.Features.EdgeFeatures.class, feature = Graph.Features.EdgeFeatures.FEATURE_ADD_EDGES, supported = false) @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_ADD_VERTICES) public void shouldSupportAddEdgesIfEdgeCanBeAdded() throws Exception { try { final Vertex v = graph.addVertex(); v.addEdge("friend", v); fail(String.format(INVALID_FEATURE_SPECIFICATION, EdgeFeatures.class.getSimpleName(), EdgeFeatures.FEATURE_ADD_EDGES)); } catch (Exception e) { validateException(Vertex.Exceptions.edgeAdditionsNotSupported(), e); } }
@Test @FeatureRequirement(featureClass = Graph.Features.EdgeFeatures.class, feature = Graph.Features.EdgeFeatures.FEATURE_ADD_EDGES, supported = false) @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_ADD_VERTICES) public void shouldSupportAddEdgesIfEdgeCanBeAdded() throws Exception { try { final Vertex v = graph.addVertex(); v.addEdge("friend", v); fail(String.format(INVALID_FEATURE_SPECIFICATION, EdgeFeatures.class.getSimpleName(), EdgeFeatures.FEATURE_ADD_EDGES)); } catch (Exception e) { validateException(Vertex.Exceptions.edgeAdditionsNotSupported(), e); } }
@Override public Edge addEdge(String label, Vertex inVertex, Object... keyValues) { throw edgeAdditionsNotSupported(); }
@Override public Edge addEdge(final String label, final Vertex inVertex, final Object... keyValues) { throw Vertex.Exceptions.edgeAdditionsNotSupported(); }
@Override public Edge addEdge(final String label, final Vertex inVertex, final Object... keyValues) { throw Vertex.Exceptions.edgeAdditionsNotSupported(); }
@Override public Edge addEdge(final String label, final Vertex inVertex, final Object... keyValues) { throw Vertex.Exceptions.edgeAdditionsNotSupported(); }
@Override public Edge addEdge(final String label, final Vertex inVertex, final Object... keyValues) { throw Vertex.Exceptions.edgeAdditionsNotSupported(); }
@Override public Edge addEdge(final String label, final Vertex inVertex, final Object... keyValues) { throw Vertex.Exceptions.edgeAdditionsNotSupported(); }
@Override public Edge addEdge(final String label, final Vertex inVertex, final Object... keyValues) { throw Vertex.Exceptions.edgeAdditionsNotSupported(); }