-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 87 - Hadoop InputFormat tests should check property values #508
Conversation
issue 87. first PR. thanks for reviewing |
Fixes #87 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -70,12 +70,18 @@ public void testReadWideVertexWithManyProperties() throws Exception { | |||
Map<String, Object> propertiesOnVertex = graph.traversal().V().valueMap().next(); | |||
List<?> valuesOnP = (List)propertiesOnVertex.values().iterator().next(); | |||
assertEquals(numProps, valuesOnP.size()); | |||
for (int i=0;i< numProps; i++) { | |||
assertEquals(Integer.toString(i), valuesOnP.get(i).toString() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete extra space before closing parenthesis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix it too. thx
Graph g = getGraph(); | ||
GraphTraversalSource t = g.traversal(GraphTraversalSource.computer(SparkGraphComputer.class)); | ||
assertEquals(numV, (long) t.V().count().next()); | ||
propertiesOnVertex = t.V().valueMap().next(); | ||
valuesOnP = (List)propertiesOnVertex.values().iterator().next(); | ||
assertEquals(numProps, valuesOnP.size()); | ||
for (int i=0;i< numProps; i++) { | ||
assertEquals(Integer.toString(i), valuesOnP.get(i).toString() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete extra space before closing parenthesis.
@@ -70,12 +70,18 @@ public void testReadWideVertexWithManyProperties() throws Exception { | |||
Map<String, Object> propertiesOnVertex = graph.traversal().V().valueMap().next(); | |||
List<?> valuesOnP = (List)propertiesOnVertex.values().iterator().next(); | |||
assertEquals(numProps, valuesOnP.size()); | |||
for (int i=0;i< numProps; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency and readability, please format with spaces around =
and <
and space after ;
:
for (int i = 0; i < numProps; i++) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the comment. I will fix it
Graph g = getGraph(); | ||
GraphTraversalSource t = g.traversal(GraphTraversalSource.computer(SparkGraphComputer.class)); | ||
assertEquals(numV, (long) t.V().count().next()); | ||
propertiesOnVertex = t.V().valueMap().next(); | ||
valuesOnP = (List)propertiesOnVertex.values().iterator().next(); | ||
assertEquals(numProps, valuesOnP.size()); | ||
for (int i=0;i< numProps; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency and readability, please format with spaces around =
and <
and space after ;
:
for (int i = 0; i < numProps; i++) {
…perty values Signed-off-by: Demai Ni <nidmgg@gmail.com>
All review comments have been addressed. |
Issue 87 - Hadoop InputFormat tests should check property values
Issue 87 - Hadoop InputFormat tests should check property values
Signed-off-by: Demai Ni nidmgg@gmail.com
Thank you for contributing to JanusGraph.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
master
)?For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check Travis CI for build issues and submit an update to your PR as soon as possible.