inputDialog.button("ButtonOk").click();
editDialog.list("ListPreventiveActionComments").selectItem(1);
editDialog.button("SavePreventiveAction").click();
PreventiveAction preventiveAction = new PreventiveAction();
preventiveAction.setPreventiveActionName("test");
List<PreventiveAction> list = preventiveActionManager
.findByObject(preventiveAction);
assertNotNull(list);
assertEquals(1, list.size());
preventiveAction = list.get(0);
preventiveActionManager
.lazyLoad(
preventiveAction,
new LazyLoadEnum[][] { {
LazyLoadEnum.PREVENTIVE_ACTION_COMMENTS,
LazyLoadEnum.PREVENTIVE_ACTION_COMMENT_COMMENT_TYPES } });
Set<PreventiveActionComment> comments = preventiveAction
.getPreventiveActionComments();
assertNotNull(comments);
assertEquals(2, comments.size());
int count = 0;