ATLAS-4091: Update Atlas to use Janusgraph 0.5.3 #2 (fix unit test)
diff --git a/graphdb/janus/src/test/java/org/apache/atlas/repository/graphdb/janus/GraphQueryTest.java b/graphdb/janus/src/test/java/org/apache/atlas/repository/graphdb/janus/GraphQueryTest.java
index 4797357..4b01763 100644
--- a/graphdb/janus/src/test/java/org/apache/atlas/repository/graphdb/janus/GraphQueryTest.java
+++ b/graphdb/janus/src/test/java/org/apache/atlas/repository/graphdb/janus/GraphQueryTest.java
@@ -73,8 +73,11 @@
graph.commit();
pause(); //pause to let the index get updated
- assertQueryMatches(q, v1, v3, v4);
-
+ // Janusgraph 0.5.3 introduced changes to NOT-EQUAL operator
+ // https://github.com/JanusGraph/janusgraph/issues/2205
+ // Earlier behavior doesn't check if property exists, so all vertices without this property was also returned in 'neq'.
+ // Now 'neq' checks if property exists and property is not-equal to property value
+ assertQueryMatches(q, v1, v4);
}
@Test