- assertEquals("incorrect node uuid", nodeUuid, node.getUuid());
- assertEquals("incorrect node name", nodeId, node.getName().get(new NameKey("otsi node name")).getValue());
- assertEquals("administrative state should be UNLOCKED",
- AdministrativeState.UNLOCKED, node.getAdministrativeState());
- assertEquals("life-cycle state should be INSTALLED", LifecycleState.INSTALLED, node.getLifecycleState());
- assertEquals("operational state should be ENABLED", OperationalState.ENABLED, node.getOperationalState());
- assertEquals("value-name should be 'dsr/odu node name'",
- "otsi node name", node.nonnullName().values().stream().findFirst().get().getValueName());
- assertEquals("otsi node should manage a single protocol layer : PHOTONIC_MEDIA",
- 1, node.getLayerProtocolName().size());
- assertEquals("otsi node should manage a single protocol layer : PHOTONIC_MEDIA",
- LayerProtocolName.PHOTONICMEDIA, node.getLayerProtocolName().get(0));
+ assertEquals(nodeUuid, node.getUuid(), "incorrect node uuid");
+ assertEquals(nodeId, node.getName().get(new NameKey("otsi node name")).getValue(), "incorrect node name");
+ assertEquals(AdministrativeState.UNLOCKED, node.getAdministrativeState(),
+ "administrative state should be UNLOCKED");
+ assertEquals(LifecycleState.INSTALLED, node.getLifecycleState(), "life-cycle state should be INSTALLED");
+ assertEquals(OperationalState.ENABLED, node.getOperationalState(), "operational state should be ENABLED");
+ assertThat("one value-name should be 'dsr/odu node name'",
+ new ArrayList<>(node.nonnullName().keySet()), hasItem(new NameKey("otsi node name")));
+ assertEquals(1, node.getLayerProtocolName().size(),
+ "otsi node should manage a single protocol layer : PHOTONIC_MEDIA");
+ assertEquals(LayerProtocolName.PHOTONICMEDIA, node.getLayerProtocolName().stream().findFirst().get(),
+ "otsi node should manage a single protocol layer : PHOTONIC_MEDIA");