assertEquals(asList.get(1), notifies.get(1));
}
@Test
public void should_update_notify3() throws Exception {
RestMcuLineSettings value = new RestMcuLineSettings();
// its duplicated but should not be a problem for the controller as it will notify only once
List<RestMcuLineNotify> asList = Arrays.asList(
new RestMcuLineNotify(RestMcuLineNotifyCondition.INF_OR_EQUAL, 0f), //
new RestMcuLineNotify(RestMcuLineNotifyCondition.SUP_OR_EQUAL, 0f), //
new RestMcuLineNotify(RestMcuLineNotifyCondition.INF_OR_EQUAL, 0f), //
new RestMcuLineNotify(RestMcuLineNotifyCondition.SUP_OR_EQUAL, 0f));
value.setNotifies(asList);
restmcu.getLineResource().setLineSettings(8, value);
List<RestMcuLineNotify> notifies = restmcu.getLineResource().getLineSettings(8).getNotifies();
assertEquals(4, notifies.size());