You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/05/20 19:04:30 UTC

incubator-tinkerpop git commit: Add test for Scope.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 29feb0aba -> b2b754e41


Add test for Scope.


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

Branch: refs/heads/master
Commit: b2b754e412ba024ee1c925e730e5606c69129c04
Parents: 29feb0a
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed May 20 12:58:30 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed May 20 12:58:30 2015 -0400

----------------------------------------------------------------------
 .../gremlin/process/traversal/ScopeTest.java    | 38 ++++++++++++++++++++
 1 file changed, 38 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/b2b754e4/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/ScopeTest.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/ScopeTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/ScopeTest.java
new file mode 100644
index 0000000..b5414d7
--- /dev/null
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/ScopeTest.java
@@ -0,0 +1,38 @@
+/*
+ * 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;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * @author Stephen Mallette (http://stephen.genoprime.com)
+ */
+public class ScopeTest {
+    @Test
+    public void shouldHaveLocalBeOppositeOfGlobal() {
+        assertEquals(Scope.local, Scope.global.opposite());
+    }
+
+    @Test
+    public void shouldHaveGlobalBeOppositeOfLocal() {
+        assertEquals(Scope.global, Scope.local.opposite());
+    }
+}