Skip to content

Commit 2dc1687

Browse files
committed
KERML_-1 Added KerML Xpect test for validateRedefinitionEndConformance.
1 parent 4fd9ba7 commit 2dc1687

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//*
2+
XPECT_SETUP org.omg.kerml.xpect.tests.validation.KerMLValidationTest
3+
ResourceSet {
4+
ThisFile {}
5+
File {from ="/library/Base.kerml"}
6+
File {from ="/library/Occurrences.kerml"}
7+
File {from ="/library/Objects.kerml"}
8+
File {from ="/library/Performances.kerml"}
9+
}
10+
Workspace {
11+
JavaProject {
12+
SrcFolder {
13+
ThisFile {}
14+
File {from ="/library/Base.kerml"}
15+
File {from ="/library/Occurrences.kerml"}
16+
File {from ="/library/Objects.kerml"}
17+
File {from ="/library/Performances.kerml"}
18+
}
19+
}
20+
}
21+
END_SETUP
22+
*/
23+
package RedefinitionEnd {
24+
classifier A {
25+
end feature e[1];
26+
}
27+
28+
classifier B :> A {
29+
// XPECT errors ---> "Redefining feature must be an end feature" at "e"
30+
feature :>> e;
31+
}
32+
33+
}

0 commit comments

Comments
 (0)