/** * A {@link org.apache.tinkerpop.gremlin.structure.Graph} that does not support {@link org.apache.tinkerpop.gremlin.structure.Graph.Features.GraphFeatures#FEATURE_COMPUTER} must call * {@link org.apache.tinkerpop.gremlin.structure.Graph.Exceptions#graphComputerNotSupported()}. */ @Test @FeatureRequirement(featureClass = GraphFeatures.class, feature = FEATURE_COMPUTER, supported = false) public void shouldSupportComputerIfAGraphCanCompute() throws Exception { try { graph.compute(); fail(String.format(INVALID_FEATURE_SPECIFICATION, GraphFeatures.class.getSimpleName(), FEATURE_COMPUTER)); } catch (Exception e) { validateException(Graph.Exceptions.graphComputerNotSupported(), e); } }
@Override public GraphComputer compute() throws IllegalArgumentException { throw Exceptions.graphComputerNotSupported(); }
@Override public <C extends GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException { throw Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public <C extends GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException { throw Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() { throw Exceptions.graphComputerNotSupported(); }
@Override public <C extends GraphComputer> C compute(Class<C> clazz) throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public <C extends GraphComputer> C compute(final Class<C> graphComputerClass) throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() { throw Exceptions.graphComputerNotSupported(); }
@Override public <C extends GraphComputer> C compute(final Class<C> graphComputerClass) { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public <C extends GraphComputer> C compute(Class<C> clazz) throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public GraphComputer compute() throws IllegalArgumentException { throw Graph.Exceptions.graphComputerNotSupported(); }
@Override public <C extends GraphComputer> C compute(final Class<C> graphComputerClass) { throw Exceptions.graphComputerNotSupported(); }