SimplePathExtension extends AbstractSampleExtension { @ExtensionDefinition(extensionPoint = ExtensionPoint.GRAPH, path = "other-work") @ExtensionDescriptor(description = "returns the results of the toString() method on the edge.") public ExtensionResponse doOtherWorkOnGraph(@RexsterContext Graph graph) { return toStringIt(graph, "other"); }  @ExtensionDefinition(extensionPoint = ExtensionPoint.GRAPH, path = "some-work") @ExtensionDescriptor(description = "returns the results of the toString() method on the graph.") ExtensionResponse doSomeWorkOnGraph(@RexsterContext Graph graph); @ExtensionDefinition(extensionPoint = ExtensionPoint.GRAPH, path = "other-work") @ExtensionDescriptor(description = "returns the results of the toString() method on the edge.") ExtensionResponse doOtherWorkOnGraph(@RexsterContext Graph graph); static final String EXTENSION_NAME; }
@Test public void doWorkOnEdgeValid() { ExtensionResponse response = this.simplePathExtension.doOtherWorkOnGraph(this.graph); doTests(response, "tinkergraph[vertices:6 edges:6]", "other"); }