Skip to content

Commit

Permalink
Add tests to enforce support of usersupplied ids if supportsAnyId is …
Browse files Browse the repository at this point in the history
…true.
  • Loading branch information
spmallette committed Apr 10, 2015
1 parent ce1aeae commit aa3d538
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,24 @@ public void innerSetup() {
vertexPropertyFeatures = vertexFeatures.properties();
}

@Test
@FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = VertexFeatures.FEATURE_ANY_IDS)
public void shouldNotSupportAnyIdsUnlessUserSuppliedIdsIsSupportedOnVertex() {
assertTrue(vertexFeatures.supportsUserSuppliedIds());
}

@Test
@FeatureRequirement(featureClass = Graph.Features.EdgeFeatures.class, feature = EdgeFeatures.FEATURE_ANY_IDS)
public void shouldNotSupportAnyIdsUnlessUserSuppliedIdsIsSupportedOnEdge() {
assertTrue(edgeFeatures.supportsUserSuppliedIds());
}

@Test
@FeatureRequirement(featureClass = Graph.Features.VertexPropertyFeatures.class, feature = VertexPropertyFeatures.FEATURE_ANY_IDS)
public void shouldNotSupportAnyIdsUnlessUserSuppliedIdsIsSupportedOnVertexProperty() {
assertTrue(vertexPropertyFeatures.supportsUserSuppliedIds());
}

@Test
public void shouldSupportADataTypeIfGraphHasVariablesEnabled() {
assertEquals(variablesFeatures.supportsVariables(), (variablesFeatures.supportsBooleanValues() || variablesFeatures.supportsDoubleValues()
Expand Down

0 comments on commit aa3d538

Please sign in to comment.