// Path: gremlin-objects/src/test/java/org/apache/tinkerpop/gremlin/object/traversal/TraversalTest.java
// @SuppressWarnings("unchecked")
// public abstract class TraversalTest<O> {
// 
//   protected GraphTraversalSource g;
//   protected GraphTraversal<Element, O> traversal;
// 
//   protected City sanFrancisco;
// 
//   @Before
//   public void setUp() {
//     sanFrancisco = City.of("San Francisco");
//     traversal = (GraphTraversal<Element, O>) mock(GraphTraversal.class);
//     when(traversal.property(anyString(), any())).thenReturn(traversal);
//     when(traversal.hasLabel(anyString())).thenReturn(traversal);
//     when(traversal.count()).thenReturn((GraphTraversal) traversal);
//     g = mock(GraphTraversalSource.class);
//     when(g.V()).thenReturn((GraphTraversal) traversal);
//     when(g.addV(anyString())).thenReturn((GraphTraversal) traversal);
//   }
// 
//   protected GraphTraversal<Element, O> traverse(AnyTraversal anyTraversal) {
//     return (GraphTraversal<Element, O>) anyTraversal.apply(g);
//   }
// 
//   @SuppressWarnings("rawtypes")
//   protected GraphTraversal<Element, O> traverse(SubTraversal subTraversal) {
//     return (GraphTraversal<Element, O>) subTraversal.apply(traversal);
//   }
// 
//   @Data
//   @Builder
//   @AllArgsConstructor
//   @EqualsAndHashCode(callSuper = true)
//   public static class City extends Vertex {
// 
//     @PrimaryKey
//     private String name;
//     private int population;
// 
//     public static City of(String name) {
//       return City.builder().name(name).build();
//     }
//   }
// 
//   @Data
//   @Builder
//   @EqualsAndHashCode(callSuper = true)
//   @RequiredArgsConstructor(staticName = "of")
//   public static class Highway extends Edge {
// 
//     @PrimaryKey
//     private final String name;
// 
//     @Override
//     protected List<Connection> connections() {
//       return Connection.list(City.class, City.class);
//     }
//   }
// 
// }


import org.apache.tinkerpop.gremlin.object.traversal.TraversalTest;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
import static org.mockito.Matchers.anyVararg;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
/*
 * 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.object.traversal.library;



/**
 * Verify that {@link Values} gets the values of all the properties of the given element, de-duped.
 *
 * @author Karthick Sankarachary (http://github.com/karthicks)
 */
public class ValuesTest extends TraversalTest<Object> {

  @Test
  public void testValuesTraversal() {
    City sanFrancisco = City.of("San Francisco");
    Values values = Values.of(sanFrancisco);

    when(traversal.values(anyVararg())).thenReturn(traversal);
// Path: gremlin-objects/src/test/java/org/apache/tinkerpop/gremlin/object/traversal/TraversalTest.java
// @SuppressWarnings("unchecked")
// public abstract class TraversalTest<O> {
// 
//   protected GraphTraversalSource g;
//   protected GraphTraversal<Element, O> traversal;
// 
//   protected City sanFrancisco;
// 
//   @Before
//   public void setUp() {
//     sanFrancisco = City.of("San Francisco");
//     traversal = (GraphTraversal<Element, O>) mock(GraphTraversal.class);
//     when(traversal.property(anyString(), any())).thenReturn(traversal);
//     when(traversal.hasLabel(anyString())).thenReturn(traversal);
//     when(traversal.count()).thenReturn((GraphTraversal) traversal);
//     g = mock(GraphTraversalSource.class);
//     when(g.V()).thenReturn((GraphTraversal) traversal);
//     when(g.addV(anyString())).thenReturn((GraphTraversal) traversal);
//   }
// 
//   protected GraphTraversal<Element, O> traverse(AnyTraversal anyTraversal) {
//     return (GraphTraversal<Element, O>) anyTraversal.apply(g);
//   }
// 
//   @SuppressWarnings("rawtypes")
//   protected GraphTraversal<Element, O> traverse(SubTraversal subTraversal) {
//     return (GraphTraversal<Element, O>) subTraversal.apply(traversal);
//   }
// 
//   @Data
//   @Builder
//   @AllArgsConstructor
//   @EqualsAndHashCode(callSuper = true)
//   public static class City extends Vertex {
// 
//     @PrimaryKey
//     private String name;
//     private int population;
// 
//     public static City of(String name) {
//       return City.builder().name(name).build();
//     }
//   }
// 
//   @Data
//   @Builder
//   @EqualsAndHashCode(callSuper = true)
//   @RequiredArgsConstructor(staticName = "of")
//   public static class Highway extends Edge {
// 
//     @PrimaryKey
//     private final String name;
// 
//     @Override
//     protected List<Connection> connections() {
//       return Connection.list(City.class, City.class);
//     }
//   }
// 
// }


// Path: gremlin-objects/src/test/java/org/apache/tinkerpop/gremlin/object/traversal/library/ValuesTest.java
import org.apache.tinkerpop.gremlin.object.traversal.TraversalTest;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
import static org.mockito.Matchers.anyVararg;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

/*
 * 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.object.traversal.library;



/**
 * Verify that {@link Values} gets the values of all the properties of the given element, de-duped.
 *
 * @author Karthick Sankarachary (http://github.com/karthicks)
 */
public class ValuesTest extends TraversalTest<Object> {

  @Test
  public void testValuesTraversal() {
    City sanFrancisco = City.of("San Francisco");
    Values values = Values.of(sanFrancisco);

    when(traversal.values(anyVararg())).thenReturn(traversal);
    traverse(values);