This is an automated email from the ASF dual-hosted git repository. okram pushed a commit to branch tp4 in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/tp4 by this push: new bd06d2a small tweak. bd06d2a is described below commit bd06d2aa0f2eb0af71a0f07fa616f9b9f00dd82a Author: Marko A. Rodriguez <okramma...@gmail.com> AuthorDate: Mon Mar 11 15:43:01 2019 -0600 small tweak. --- .../java/org/apache/tinkerpop/machine/pipes/PipesIdentityTest.java | 3 +-- .../apache/tinkerpop/machine/functions/filters/IdentityTest.java | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/java/machine/pipes/src/test/java/org/apache/tinkerpop/machine/pipes/PipesIdentityTest.java b/java/machine/pipes/src/test/java/org/apache/tinkerpop/machine/pipes/PipesIdentityTest.java index 88b833d..13dd6b2 100644 --- a/java/machine/pipes/src/test/java/org/apache/tinkerpop/machine/pipes/PipesIdentityTest.java +++ b/java/machine/pipes/src/test/java/org/apache/tinkerpop/machine/pipes/PipesIdentityTest.java @@ -30,10 +30,9 @@ import org.junit.jupiter.api.Test; public class PipesIdentityTest { private TraversalSource<Long> g = Gremlin.<Long>traversal().withProcessor(PipesProcessor.class).withCoefficient(LongCoefficient.class); - private IdentityTest test = new IdentityTest(); @Test public void g_injectX2X_identity() { - test.g_injectX2X_identity(g.inject(2L).identity()); + IdentityTest.g_injectX2X_identity(g.inject(2L).identity()); } } diff --git a/java/test/src/main/java/org/apache/tinkerpop/machine/functions/filters/IdentityTest.java b/java/test/src/main/java/org/apache/tinkerpop/machine/functions/filters/IdentityTest.java index 45d0515..4699eb7 100644 --- a/java/test/src/main/java/org/apache/tinkerpop/machine/functions/filters/IdentityTest.java +++ b/java/test/src/main/java/org/apache/tinkerpop/machine/functions/filters/IdentityTest.java @@ -29,7 +29,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; */ public class IdentityTest { - public void g_injectX2X_identity(final Traversal<Long, Long, Long> traversal) { + private IdentityTest() { + // static class + } + + public static void g_injectX2X_identity(final Traversal<Long, Long, Long> traversal) { final List<Long> list = traversal.toList(); assertEquals(1, list.size()); assertEquals(2L, list.get(0));