tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [03/50] incubator-tinkerpop git commit: Removed mixed typing in VertexPropertyTest
Date Thu, 03 Dec 2015 16:42:59 GMT
Removed mixed typing in VertexPropertyTest

Converted integer value to string to maintain type


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/fd95dc8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/fd95dc8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/fd95dc8b

Branch: refs/heads/TINKERPOP3-982
Commit: fd95dc8b62c02f73c9de8da31fb7a200efe2929a
Parents: 0c20c6d
Author: Nghia Tran <nghia.tran.83@gmail.com>
Authored: Tue Nov 24 19:53:45 2015 -0500
Committer: Nghia Tran <nghia.tran.83@gmail.com>
Committed: Tue Nov 24 19:53:45 2015 -0500

----------------------------------------------------------------------
 .../gremlin/structure/VertexPropertyTest.java         | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/fd95dc8b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexPropertyTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexPropertyTest.java
b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexPropertyTest.java
index edb4d8f..c7f7749 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexPropertyTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexPropertyTest.java
@@ -23,22 +23,22 @@ import org.apache.tinkerpop.gremlin.ExceptionCoverage;
 import org.apache.tinkerpop.gremlin.FeatureRequirement;
 import org.apache.tinkerpop.gremlin.FeatureRequirementSet;
 import org.apache.tinkerpop.gremlin.process.traversal.P;
-import org.apache.tinkerpop.gremlin.util.function.FunctionUtils;
 import org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils;
 import org.junit.Test;
 import org.junit.experimental.runners.Enclosed;
 import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
 
-import java.util.Arrays;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.UUID;
-import java.util.function.Consumer;
 
 import static org.hamcrest.Matchers.hasItem;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotEquals;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 /**
  * @author Marko A. Rodriguez (http://markorodriguez.com)
@@ -446,7 +446,7 @@ public class VertexPropertyTest extends AbstractGremlinTest {
             });
 
             for (int i = 0; i < 100; i++) {
-                marko.property(VertexProperty.Cardinality.list, "name", i);
+                marko.property(VertexProperty.Cardinality.list, "name", "Remove-" + String.valueOf(i));
             }
             tryCommit(graph, graph -> {
                 assertVertexEdgeCounts(1, 0);
@@ -455,7 +455,7 @@ public class VertexPropertyTest extends AbstractGremlinTest {
                 assertEquals(0, IteratorUtils.count(marko.properties("blah")));
             });
 
-            g.V().properties("name").has(T.value, P.test((a, b) -> ((Class) b).isAssignableFrom(a.getClass()),
Integer.class)).forEachRemaining(Property::remove);
+            g.V().properties("name").has(T.value, P.test((a, b) -> ((String) a).startsWith((String)
b), "Remove-")).forEachRemaining(Property::remove);
             tryCommit(graph, graph -> {
                 assertVertexEdgeCounts(1, 0);
                 assertEquals(2, IteratorUtils.count(marko.properties("name")));


Mime
View raw message