diff --git a/judo-tatami-jsl-jsl2ui/src/test/java/hu/blackbelt/judo/tatami/jsl/jsl2ui/application/JslModel2UiDataTest.java b/judo-tatami-jsl-jsl2ui/src/test/java/hu/blackbelt/judo/tatami/jsl/jsl2ui/application/JslModel2UiDataTest.java index 6f0e1ba0..039d9850 100644 --- a/judo-tatami-jsl-jsl2ui/src/test/java/hu/blackbelt/judo/tatami/jsl/jsl2ui/application/JslModel2UiDataTest.java +++ b/judo-tatami-jsl-jsl2ui/src/test/java/hu/blackbelt/judo/tatami/jsl/jsl2ui/application/JslModel2UiDataTest.java @@ -447,8 +447,8 @@ view UserView(User u) { link UnmappedRelated unmappedLazyRequired required; table UnmappedRelatedRow[] unmappedLazyCollection; - link MappedRelated lazyAssociation <= u.association create:true; - link MappedRelated lazyAssociationOpposite <= u.userRelatedOpposite create:true; + link MappedRelated lazyAssociation <= u.association create:true update:true delete:true; + link MappedRelated lazyAssociationOpposite <= u.userRelatedOpposite create:true update:true delete:true; link MappedRelated derivedLazyContainment <= u.containment; table MappedRelatedRow[] derivedLazyContainmentCollection <= u.containmentCollection; @@ -491,6 +491,8 @@ view UserView(User u) { view MappedRelated(EntityRelated e) { field String mappedAttribute <= e.hello; event create onCreate; + event update onUpdate; + event delete onDelete; } row MappedRelatedRow(EntityRelated e) { @@ -543,6 +545,9 @@ row MappedRelatedRow(EntityRelated e) { assertRelationType(lazyAssociation, mappedRelated, RelationKind.ASSOCIATION, MemberType.STORED, false, true, true, true, Set.of( RelationBehaviourType.VALIDATE_CREATE, RelationBehaviourType.CREATE, + RelationBehaviourType.VALIDATE_UPDATE, + RelationBehaviourType.UPDATE, + RelationBehaviourType.DELETE, RelationBehaviourType.REFRESH, RelationBehaviourType.LIST )); @@ -551,6 +556,9 @@ row MappedRelatedRow(EntityRelated e) { assertRelationType(lazyAssociationOpposite, mappedRelated, RelationKind.ASSOCIATION, MemberType.STORED, false, true, true, true, Set.of( RelationBehaviourType.VALIDATE_CREATE, RelationBehaviourType.CREATE, + RelationBehaviourType.VALIDATE_UPDATE, + RelationBehaviourType.UPDATE, + RelationBehaviourType.DELETE, RelationBehaviourType.REFRESH, RelationBehaviourType.LIST ));