Skip to content

Commit

Permalink
JNG-5840 add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Jul 18, 2024
1 parent f1af500 commit 34cfba5
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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
));
Expand All @@ -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
));
Expand Down

0 comments on commit 34cfba5

Please sign in to comment.