[09/12] tinkerpop git commit: TINKERPOP-1612 WIP - first step to removal of gremlin-groovy-test
TINKERPOP-1612 WIP - first step to removal of gremlin-groovy-test Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a5f528a5 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a5f528a5 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a5f528a5 Branch: refs/heads/TINKERPOP-1612 Commit: a5f528a5bfb116c95add2a6e93f17745700f5abe Parents: 7b3adca Author: Stephen MalletteAuthored: Tue Jan 24 07:22:07 2017 -0500 Committer: Stephen Mallette Committed: Thu Jan 26 14:55:44 2017 -0500 -- gremlin-groovy-test/pom.xml | 64 --- .../groovy/loaders/SugarLoaderTest.groovy | 134 -- .../gremlin/groovy/util/SugarTestHelper.groovy | 37 -- .../step/branch/GroovyBranchTest.groovy | 58 --- .../step/branch/GroovyChooseTest.groovy | 62 --- .../step/branch/GroovyLocalTest.groovy | 91 - .../step/branch/GroovyOptionalTest.groovy | 59 --- .../step/branch/GroovyRepeatTest.groovy | 88 .../step/branch/GroovyUnionTest.groovy | 77 .../traversal/step/filter/GroovyAndTest.groovy | 52 --- .../traversal/step/filter/GroovyCoinTest.groovy | 41 -- .../step/filter/GroovyCyclicPathTest.groovy | 43 -- .../step/filter/GroovyDedupTest.groovy | 113 -- .../traversal/step/filter/GroovyDropTest.groovy | 51 --- .../step/filter/GroovyFilterTest.groovy | 73 .../traversal/step/filter/GroovyHasTest.groovy | 173 .../traversal/step/filter/GroovyIsTest.groovy | 57 --- .../traversal/step/filter/GroovyOrTest.groovy | 47 --- .../step/filter/GroovyRangeTest.groovy | 127 -- .../step/filter/GroovySampleTest.groovy | 58 --- .../step/filter/GroovySimplePathTest.groovy | 43 -- .../traversal/step/filter/GroovyTailTest.groovy | 92 - .../step/filter/GroovyWhereTest.groovy | 167 .../traversal/step/map/GroovyAddEdgeTest.groovy | 85 .../step/map/GroovyAddVertexTest.groovy | 101 - .../step/map/GroovyCoalesceTest.groovy | 59 --- .../step/map/GroovyConstantTest.groovy | 42 -- .../traversal/step/map/GroovyCountTest.groovy | 71 .../traversal/step/map/GroovyFlatMapTest.groovy | 36 -- .../traversal/step/map/GroovyFoldTest.groovy| 46 --- .../traversal/step/map/GroovyGraphTest.groovy | 55 --- .../traversal/step/map/GroovyLoopsTest.groovy | 56 --- .../traversal/step/map/GroovyMapKeysTest.groovy | 43 -- .../traversal/step/map/GroovyMapTest.groovy | 62 --- .../step/map/GroovyMapValuesTest.groovy | 48 --- .../traversal/step/map/GroovyMatchTest.groovy | 381 - .../traversal/step/map/GroovyMaxTest.groovy | 47 --- .../traversal/step/map/GroovyMeanTest.groovy| 42 -- .../traversal/step/map/GroovyMinTest.groovy | 47 --- .../traversal/step/map/GroovyOrderTest.groovy | 140 --- .../step/map/GroovyPageRankTest.groovy | 78 .../traversal/step/map/GroovyPathTest.groovy| 63 --- .../step/map/GroovyPeerPressureTest.groovy | 48 --- .../traversal/step/map/GroovyProfileTest.groovy | 94 - .../traversal/step/map/GroovyProgramTest.groovy | 50 --- .../traversal/step/map/GroovyProjectTest.groovy | 42 -- .../step/map/GroovyPropertiesTest.groovy| 60 --- .../traversal/step/map/GroovySelectTest.groovy | 242 --- .../traversal/step/map/GroovySumTest.groovy | 42 -- .../traversal/step/map/GroovyUnfoldTest.groovy | 48 --- .../step/map/GroovyValueMapTest.groovy | 51 --- .../traversal/step/map/GroovyVertexTest.groovy | 187 - .../step/sideEffect/GroovyAggregateTest.groovy | 53 --- .../step/sideEffect/GroovyExplainTest.groovy| 35 -- .../step/sideEffect/GroovyGroupCountTest.groovy | 101 - .../step/sideEffect/GroovyGroupTest.groovy | 137 --- .../step/sideEffect/GroovyGroupTestV3d0.groovy | 74 .../step/sideEffect/GroovyInjectTest.groovy | 42 -- .../step/sideEffect/GroovySackTest.groovy | 84 .../sideEffect/GroovySideEffectCapTest.groovy | 45 -- .../step/sideEffect/GroovySideEffectTest.groovy | 83 .../step/sideEffect/GroovyStoreTest.groovy | 53 --- .../step/sideEffect/GroovySubgraphTest.groovy | 50 --- .../step/sideEffect/GroovyTreeTest.groovy | 69 .../groovy/GroovyEnvironmentIntegrateSuite.java | 85 .../gremlin/groovy/GroovyEnvironmentSuite.java | 92 - .../engine/GremlinExecutorOverGraphTest.java| 108 - ...remlinGroovyScriptEngineFileSandboxTest.java | 120 -- .../GremlinGroovyScriptEngineIntegrateTest.java | 88 .../GremlinGroovyScriptEngineOverGraphTest.java | 379 - ...GroovyScriptEngineSandboxedStandardTest.java | 138 ---
[09/12] tinkerpop git commit: TINKERPOP-1612 WIP - first step to removal of gremlin-groovy-test
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/aa828940/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/GroovySackTest.groovy -- diff --git a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/GroovySackTest.groovy b/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/GroovySackTest.groovy deleted file mode 100644 index a478f6f..000 --- a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/GroovySackTest.groovy +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect - -import org.apache.tinkerpop.gremlin.process.traversal.Traversal -import org.apache.tinkerpop.gremlin.process.traversal.util.ScriptTraversal -import org.apache.tinkerpop.gremlin.structure.Vertex - -/** - * @author Marko A. Rodriguez (http://markorodriguez.com) - */ -public abstract class GroovySackTest { - -public static class Traversals extends SackTest { - -@Override -public Traversalget_g_withSackXhelloX_V_outE_sackXassignX_byXlabelX_inV_sack() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack('hello').V.outE.sack(assign).by(label).inV.sack") -} - -@Override -public Traversal get_g_withSackX0X_V_outE_sackXsumX_byXweightX_inV_sack_sum() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack(0.0d).V.outE.sack(sum).by('weight').inV.sack.sum()") -} - -@Override -public Traversal get_g_withSackX0X_V_repeatXoutE_sackXsumX_byXweightX_inVX_timesX2X_sack() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack(0.0d).V.repeat(__.outE.sack(sum).by('weight').inV).times(2).sack()") -} - -@Override -public Traversal get_g_withSackX0X_V_outE_sackXsum_weightX_inV_sack_sum() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack(0.0d).V().outE.sack(sum, 'weight').inV.sack.sum()") -} - -@Override -public Traversal get_g_withSackX0X_V_repeatXoutE_sackXsum_weightX_inVX_timesX2X_sack() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack(0.0d).V.repeat(__.outE.sack(sum, 'weight').inV).times(2).sack") -} - -@Override -public Traversal get_g_withSackXmap__map_cloneX_V_out_out_sackXmap_a_nameX_sack() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack{[:]}{ it.clone() }.V.out().out().sack { m, v -> m['a'] = v.name; m }.sack()") -} - -@Override -public Traversal get_g_withSackX1_sumX_VX1X_localXoutXknowsX_barrierXnormSackXX_inXknowsX_barrier_sack( -final Object v1Id) { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack(1.0d,sum).V(v1Id).local(out('knows').barrier(normSack)).in('knows').barrier.sack", "v1Id", v1Id) -} - -@Override -public Traversal get_g_withBulkXfalseX_withSackX1_sumX_V_out_barrier_sack() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withBulk(false).withSack(1, sum).V.out.barrier.sack") -} - -@Override -public Traversal get_g_withBulkXfalseX_withSackX1_sumX_VX1X_localXoutEXknowsX_barrierXnormSackX_inVX_inXknowsX_barrier_sack( -final Object v1Id) { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withBulk(false).withSack(1.0d, sum).V(v1Id).local(outE('knows').barrier(normSack).inV).in('knows').barrier.sack", "v1Id", v1Id) -} - -@Override -Traversal get_g_withSackXBigInteger_TEN_powX1000X_assignX_V_localXoutXknowsX_barrierXnormSackXX_inXknowsX_barrier_sack() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.withSack(BigInteger.TEN.pow(1000), assign).V.local(out('knows').barrier(normSack)).in('knows').barrier.sack") -}
[09/12] tinkerpop git commit: TINKERPOP-1612 WIP - first step to removal of gremlin-groovy-test
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/6b1eef57/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovySimplePathTest.groovy -- diff --git a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovySimplePathTest.groovy b/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovySimplePathTest.groovy deleted file mode 100644 index e1206df..000 --- a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovySimplePathTest.groovy +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tinkerpop.gremlin.process.traversal.step.filter - -import org.apache.tinkerpop.gremlin.process.traversal.Path -import org.apache.tinkerpop.gremlin.process.traversal.Traversal -import org.apache.tinkerpop.gremlin.process.traversal.util.ScriptTraversal -import org.apache.tinkerpop.gremlin.structure.Vertex - -/** - * @author Marko A. Rodriguez (http://markorodriguez.com) - */ -public abstract class GroovySimplePathTest { - -public static class Traversals extends SimplePathTest { - -@Override -public Traversalget_g_VX1X_outXcreatedX_inXcreatedX_simplePath(final Object v1Id) { -new ScriptTraversal<>(g, "gremlin-groovy", "g.V(v1Id).out('created').in('created').simplePath", "v1Id", v1Id); -} - -@Override -public Traversal get_g_V_repeatXboth_simplePathX_timesX3X_path() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.V.repeat(__.both.simplePath).times(3).path()"); -} -} -} http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/6b1eef57/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovyTailTest.groovy -- diff --git a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovyTailTest.groovy b/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovyTailTest.groovy deleted file mode 100644 index 38c2a1d..000 --- a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/filter/GroovyTailTest.groovy +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tinkerpop.gremlin.process.traversal.step.filter - -import org.apache.tinkerpop.gremlin.process.traversal.Traversal -import org.apache.tinkerpop.gremlin.process.traversal.util.ScriptTraversal -import org.apache.tinkerpop.gremlin.structure.Vertex - -/** - * @author Matt Frantz (http://github.com/mhfrantz) - */ -public abstract class GroovyTailTest { - -public static class Traversals extends TailTest { - -@Override -public Traversal get_g_V_valuesXnameX_order_tailXglobal_2X() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.V.values('name').order.tail(global, 2)") -} - -@Override -public Traversal get_g_V_valuesXnameX_order_tailX2X() { -new ScriptTraversal<>(g, "gremlin-groovy", "g.V.values('name').order.tail(2)") -} - -@Override -public