use of org.apache.beam.runners.dataflow.worker.graph.Nodes.InstructionOutputNode in project beam by apache.
the class LengthPrefixUnknownCodersTest method testLengthPrefixForInstructionOutputNodeWithNonGrpcNodeNeighbor.
@Test
public void testLengthPrefixForInstructionOutputNodeWithNonGrpcNodeNeighbor() {
MutableNetwork<Node, Edge> network = createEmptyNetwork();
ParallelInstructionNode readNode = createReadNode("read", "source", windowedValueCoder);
network.addNode(instructionOutputNode);
network.addNode(readNode);
network.addEdge(readNode, instructionOutputNode, DefaultEdge.create());
assertEqualsAsJson(CloudObjects.asCloudObject(windowedValueCoder, /*sdkComponents=*/
null), ((InstructionOutputNode) forInstructionOutputNode(network).apply(instructionOutputNode)).getInstructionOutput().getCodec());
}
Aggregations