[
https://issues.apache.org/jira/browse/TINKERPOP-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15431619#comment-15431619
]
Marko A. Rodriguez commented on TINKERPOP-1413:
-----------------------------------------------
Okay. I pushed a fix.
{code}
Object id = vertexProperty.id();
id = id instanceof Number ? ((Number) id).longValue() : id;
Object otherId = convertToVertex(graph,
vertexProperty.value()).property("name").id();
otherId = otherId instanceof Number ? ((Number) otherId).longValue() : otherId;
assertEquals(otherId, id);
{code}
This should handle both situations.
> PropertiesTest#g_V_hasXageX_propertiesXnameX assumes that ids are longs
> -----------------------------------------------------------------------
>
> Key: TINKERPOP-1413
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1413
> Project: TinkerPop
> Issue Type: Improvement
> Components: test-suite
> Affects Versions: 3.1.3
> Reporter: Bryn Cooke
> Assignee: Marko A. Rodriguez
> Fix For: 3.1.4, 3.2.2
>
>
> This assert assumes that Ids are longs.
> {noformat}
> assertEquals(Long.valueOf(convertToVertex(graph,
> vertexProperty.value()).properties("name").next().id().toString()),
> Long.valueOf(vertexProperty.id().toString()));
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)