switchingFunctionsNode.setPortsConfig(node.getSERVO()); switchingFunctionsNode.setPortsConfig(node.getSOUND()); switchingFunctionsNode.setPortsConfig(node.getSPORT()); switchingFunctionsNode.setPortsConfig(node.getLPORT()); switchingFunctionsNode.setPortsConfig(node.getBACKLIGHT());
Assert.assertNotNull(node.getLPORT()); Assert.assertEquals(node.getLPORT().getCount(), 32); Assert.assertNotNull(node.getSPORT()); Assert.assertEquals(node.getSPORT().getCount(), 8); Assert.assertNull(node.isAutoAddFeature()); Assert.assertEquals(node.getProductName(), "Product1"); Assert.assertNotNull(node.getSPORT()); Assert.assertEquals(node.getSPORT().getCount(), 8); Assert.assertNotNull(node.isAutoAddFeature()); Assert.assertEquals(node.isAutoAddFeature(), Boolean.TRUE); HubType hubNode = (HubType) node; Assert.assertNull(node.getLPORT()); Assert.assertNull(node.getSPORT()); Assert.assertNotNull(node.getINPUT()); Assert.assertEquals(node.getINPUT().getCount(), 8); Assert.assertEquals(NodeUtils.getUniqueId(subNode.getUniqueId()), 0x05343e97901237L); Assert.assertNull(subNode.getLPORT()); Assert.assertNotNull(subNode.getSPORT()); Assert.assertEquals(subNode.getSPORT().getCount(), 16);