186187188189190191192193194
@Test public void testLeaf() { RenderableNode node = new RenderableNode(); node.setNode(node()); PortList portList = node.getPortList(); Assert.assertEquals(0, portList.ports().size()); }
195196197198199200201202
@Test public void testDecorator() { RenderableNode node = new RenderableNode(); node.setNode(decorator(node())); PortList portList = node.getPortList(); Assert.assertEquals(1, portList.ports().size()); }
239240241242243244245246
@Override public Task createTask() { return null; } }); PortList portList = node.getPortList(); Assert.assertEquals(1, portList.ports().size()); }