switchingFunctionsNode.setPortsConfig(node.getSOUND()); switchingFunctionsNode.setPortsConfig(node.getSPORT()); switchingFunctionsNode.setPortsConfig(node.getLPORT()); switchingFunctionsNode.setPortsConfig(node.getBACKLIGHT()); switchingFunctionsNode.setPortsConfig(node.getMOTOR());
Assert.assertNotNull(node.getLPORT()); Assert.assertEquals(node.getLPORT().getCount(), 128); Assert.assertNotNull(node.getBACKLIGHT()); Assert.assertEquals(node.getBACKLIGHT().getCount(), 16); Assert.assertEquals(node.getINPUT().getCount(), 8); Assert.assertNotNull(node.getLPORT().getPort()); Assert.assertNotNull(node.getLPORT().getPort().get(0)); LightPortParamsType lightPortParamsType = node.getLPORT().getPort().get(0); Assert.assertEquals(lightPortParamsType.getDmxMapping(), 1); Assert.assertEquals(lightPortParamsType.getIntensityOff(), 20); Assert.assertEquals(lightPortParamsType.getIntensityOn(), 240); lightPortParamsType = node.getLPORT().getPort().get(1); Assert.assertEquals(lightPortParamsType.getDmxMapping(), 4);
Assert.assertNotNull(node.getLPORT()); Assert.assertEquals(node.getLPORT().getCount(), 32); Assert.assertNotNull(node.getSPORT()); Assert.assertEquals(node.getSPORT().getCount(), 8); Assert.assertNull(node.getLPORT()); Assert.assertNotNull(node.getSPORT()); Assert.assertEquals(node.getSPORT().getCount(), 8); Assert.assertNull(node.getLPORT()); Assert.assertNull(node.getSPORT()); Assert.assertNotNull(node.getINPUT()); Assert.assertNull(subNode.getLPORT()); Assert.assertNotNull(subNode.getSPORT()); Assert.assertEquals(subNode.getSPORT().getCount(), 16);