Remove loaders in tests themselves.
Remove loaders in tests themselves.

package com.tinkerpop.gremlin.process.graph.step.filter

import com.tinkerpop.gremlin.process.Path
import com.tinkerpop.gremlin.process.Traversal
import com.tinkerpop.gremlin.process.graph.step.ComputerTestHelper
import com.tinkerpop.gremlin.structure.Vertex

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public abstract class GroovyCyclicPathTest {

    public static class StandardTest extends CyclicPathTest {

        @Override
        public Traversal<Vertex, Vertex> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath(final Object v1Id) {
            g.v(v1Id).out('created').in('created').cyclicPath
        }

        @Override
        public Traversal<Vertex, Path> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath_path(final Object v1Id) {
            g.v(v1Id).out('created').in('created').cyclicPath.path
        }
    }

    public static class ComputerTest extends CyclicPathTest {

        @Override
        Traversal<Vertex, Vertex> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath(final Object v1) {
            ComputerTestHelper.compute("g.v(${v1}).out('created').in('created').cyclicPath", g);
        }

        @Override
        Traversal<Vertex, Path> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath_path(final Object v1) {
            ComputerTestHelper.compute("g.v(${v1}).out('created').in('created').cyclicPath().path()", g);
        }
    }
}

package com.tinkerpop.gremlin.process.graph.step.filter

import com.tinkerpop.gremlin.groovy.loaders.GremlinLoader
import com.tinkerpop.gremlin.groovy.loaders.SugarLoader
import com.tinkerpop.gremlin.process.Path
import com.tinkerpop.gremlin.process.Traversal
import com.tinkerpop.gremlin.process.graph.step.ComputerTestHelper
import com.tinkerpop.gremlin.structure.Vertex

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public abstract class GroovyCyclicPathTest {

    public static class StandardTest extends CyclicPathTest {

        @Override
        public Traversal<Vertex, Vertex> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath(final Object v1Id) {
            GremlinLoader.load()
            SugarLoader.load()
            g.v(v1Id).out('created').in('created').cyclicPath
        }

        @Override
        public Traversal<Vertex, Path> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath_path(final Object v1Id) {
            GremlinLoader.load()
            SugarLoader.load()
            g.v(v1Id).out('created').in('created').cyclicPath.path
        }
    }

    public static class ComputerTest extends CyclicPathTest {

        @Override
        Traversal<Vertex, Vertex> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath(final Object v1) {
            GremlinLoader.load()
            SugarLoader.load()
            ComputerTestHelper.compute("g.v(${v1}).out('created').in('created').cyclicPath", g);
        }

        @Override
        Traversal<Vertex, Path> get_g_v1_outXcreatedX_inXcreatedX_cyclicPath_path(final Object v1) {
            GremlinLoader.load()
            SugarLoader.load()
            ComputerTestHelper.compute("g.v(${v1}).out('created').in('created').cyclicPath().path()", g);
        }
    }
}
