Skip to content

Commit 0b8a55a

Browse files
authored
Merge pull request JanusGraph#508 from nidmgh/Issue_87_
Issue 87 - Hadoop InputFormat tests should check property values
2 parents dc2fecd + 63af9fe commit 0b8a55a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

janusgraph-hadoop-parent/janusgraph-hadoop-core/src/test/java/org/janusgraph/hadoop/AbstractInputFormatIT.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,18 @@ public void testReadWideVertexWithManyProperties() throws Exception {
7070
Map<String, Object> propertiesOnVertex = graph.traversal().V().valueMap().next();
7171
List<?> valuesOnP = (List)propertiesOnVertex.values().iterator().next();
7272
assertEquals(numProps, valuesOnP.size());
73+
for (int i = 0; i < numProps; i++) {
74+
assertEquals(Integer.toString(i), valuesOnP.get(i).toString());
75+
}
7376
Graph g = getGraph();
7477
GraphTraversalSource t = g.traversal(GraphTraversalSource.computer(SparkGraphComputer.class));
7578
assertEquals(numV, (long) t.V().count().next());
7679
propertiesOnVertex = t.V().valueMap().next();
7780
valuesOnP = (List)propertiesOnVertex.values().iterator().next();
7881
assertEquals(numProps, valuesOnP.size());
82+
for (int i = 0; i < numProps; i++) {
83+
assertEquals(Integer.toString(i), valuesOnP.get(i).toString());
84+
}
7985
}
8086

8187
@Test

0 commit comments

Comments
 (0)