Skip to content

Commit

Permalink
update test prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Dec 30, 2021
1 parent c8aa20a commit a9a99ba
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void setUp() throws Exception {
resp = session.execute(insertShape);
Assert.assertTrue(resp.getErrorMessage(), resp.isSucceeded());

String insertDuration = "INSERT VERTEX tag_duration(prop) VALUES 'duration':"
String insertDuration = "INSERT VERTEX tag_duration(col) VALUES 'duration':"
+ "(duration({months:1, seconds:100, microseconds:20}));";
resp = session.execute(insertDuration);
Assert.assertTrue(resp.getErrorMessage(), resp.isSucceeded());
Expand Down Expand Up @@ -289,11 +289,11 @@ public void testAllSchemaType() {
node = result.rowValues(0).get(0).asNode();
Assert.assertEquals("duration", node.getId().asString());
Assert.assertEquals(Arrays.asList("tag_duration"), node.tagNames());
properties = node.properties("prop");
properties = node.properties("col");
DurationWrapper durationWrapper = new DurationWrapper(new Duration(1, 100, 20));
Assert.assertEquals(durationWrapper, properties.get("prop").asDuration());
Assert.assertEquals(durationWrapper, properties.get("col").asDuration());
Assert.assertEquals(durationWrapper.toString(),
properties.get("prop").asDuration().toString());
properties.get("col").asDuration().toString());

} catch (IOErrorException | UnsupportedEncodingException e) {
e.printStackTrace();
Expand Down

0 comments on commit a9a99ba

Please sign in to comment.