/** * A {@link org.apache.tinkerpop.gremlin.structure.Graph} that does not support {@link org.apache.tinkerpop.gremlin.structure.Graph.Features.VariableFeatures#FEATURE_VARIABLES} must call * {@link org.apache.tinkerpop.gremlin.structure.Graph.Exceptions#variablesNotSupported()}. */ @Test @FeatureRequirement(featureClass = Graph.Features.VariableFeatures.class, feature = FEATURE_VARIABLES, supported = false) public void shouldSupportMemoryIfAGraphAcceptsMemory() throws Exception { try { graph.variables(); fail(String.format(INVALID_FEATURE_SPECIFICATION, Graph.Features.VariableFeatures.class.getSimpleName(), FEATURE_VARIABLES)); } catch (Exception e) { validateException(Graph.Exceptions.variablesNotSupported(), e); } }
/** * A {@link org.apache.tinkerpop.gremlin.structure.Graph} that does not support {@link org.apache.tinkerpop.gremlin.structure.Graph.Features.VariableFeatures#FEATURE_VARIABLES} must call * {@link org.apache.tinkerpop.gremlin.structure.Graph.Exceptions#variablesNotSupported()}. */ @Test @FeatureRequirement(featureClass = Graph.Features.VariableFeatures.class, feature = FEATURE_VARIABLES, supported = false) public void shouldSupportMemoryIfAGraphAcceptsMemory() throws Exception { try { graph.variables(); fail(String.format(INVALID_FEATURE_SPECIFICATION, Graph.Features.VariableFeatures.class.getSimpleName(), FEATURE_VARIABLES)); } catch (Exception e) { validateException(Graph.Exceptions.variablesNotSupported(), e); } }
@Override public Variables variables() { throw variablesNotSupported(); }
@Override public Variables variables() { throw Graph.Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Graph.Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Graph.Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Graph.Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Graph.Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Exceptions.variablesNotSupported(); }
@Override public Variables variables() { throw Graph.Exceptions.variablesNotSupported(); }