use of org.onap.aaiclient.client.graphinventory.entities.DSLNodeKey in project so by onap.
the class DSLQueryBuilderTest method outputOnNodeLambdasTest.
@Test
public void outputOnNodeLambdasTest() {
DSLQueryBuilder<Start, Start> builder = TraversalBuilder.fragment(new DSLStartNode(Types.L_INTERFACE, new DSLNodeKey("interface-id", "myId")));
builder.to(Types.VSERVER, __.key("vserver-name", "myName")).output().to(Types.P_INTERFACE).output();
assertEquals("l-interface('interface-id', 'myId') > vserver*('vserver-name', 'myName') > p-interface*", builder.build().get());
}
Aggregations