SimpleRootExtension extends AbstractSampleExtension { @ExtensionDefinition(extensionPoint = ExtensionPoint.GRAPH) @ExtensionDescriptor(description = "returns the results of the toString() method on the graph.") public ExtensionResponse doWorkOnGraph(@RexsterContext Graph graph) { return toStringIt(graph); }  @ExtensionDefinition(extensionPoint = ExtensionPoint.GRAPH) @ExtensionDescriptor(description = "returns the results of the toString() method on the graph.") ExtensionResponse doWorkOnGraph(@RexsterContext Graph graph); @ExtensionDefinition(extensionPoint = ExtensionPoint.EDGE) @ExtensionDescriptor(description = "returns the results of the toString() method on the edge.") ExtensionResponse doWorkOnEdge(@RexsterContext Edge edge); @ExtensionDefinition(extensionPoint = ExtensionPoint.VERTEX) @ExtensionDescriptor(description = "returns the results of the toString() method on the vertex.") ExtensionResponse doWorkOnVertex(@RexsterContext Vertex vertex); static final String EXTENSION_NAME; }
@Test public void doWorkOnGraphValid() { ExtensionResponse response = this.simpleRootExtension.doWorkOnGraph(this.graph); doTests(response, "tinkergraph[vertices:6 edges:6]"); }