-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[27] Add tests to validate that the attribute value can be changed
Bug: #27
- Loading branch information
1 parent
628cf0e
commit fb873b6
Showing
5 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...sts/src/main/resources/unit/attributes/extendedmetadata/TestChangeAttributeValueMono.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"json": { | ||
"version": "1.0", | ||
"encoding": "utf-8" | ||
}, | ||
"ns": { | ||
"emfjson": "http://obeo.fr/emfjson", | ||
"nodes": "http://www.obeo.fr/EMFJson" | ||
}, | ||
"schemaLocation": { | ||
"http://www.obeo.fr/EMFJson": "../../../nodes.ecore" | ||
}, | ||
"content": [ | ||
{ | ||
"eClass": "nodes:NodeSingleValueAttribute", | ||
"data": { | ||
"singleStringAttribute": "singleStringAttribute value" | ||
} | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
...ests/src/main/resources/unit/attributes/extendedmetadata/TestChangeAttributeValueMono.xmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="ASCII"?> | ||
<nodes:NodeSingleValueAttribute | ||
xmi:version="2.0" | ||
xmlns:xmi="http://www.omg.org/XMI" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:nodes="http://www.obeo.fr/EMFJson" | ||
xsi:schemaLocation="http://www.obeo.fr/EMFJson ../../../nodes.ecore" | ||
singleStringAttribute="SINGLESTRINGATTRIBUTE VALUE"/> |
25 changes: 25 additions & 0 deletions
25
...ts/src/main/resources/unit/attributes/extendedmetadata/TestChangeAttributeValueMulti.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"json": { | ||
"version": "1.0", | ||
"encoding": "utf-8" | ||
}, | ||
"ns": { | ||
"emfjson": "http://obeo.fr/emfjson", | ||
"nodes": "http://www.obeo.fr/EMFJson" | ||
}, | ||
"schemaLocation": { | ||
"http://www.obeo.fr/EMFJson": "../../../nodes.ecore" | ||
}, | ||
"content": [ | ||
{ | ||
"eClass": "nodes:NodeMultiValuedAttribute", | ||
"data": { | ||
"multiStringAttribute": [ | ||
"abc", | ||
"abcdef", | ||
"abcdefghi" | ||
] | ||
} | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
...sts/src/main/resources/unit/attributes/extendedmetadata/TestChangeAttributeValueMulti.xmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="ASCII"?> | ||
<nodes:NodeMultiValuedAttribute | ||
xmi:version="2.0" | ||
xmlns:xmi="http://www.omg.org/XMI" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:nodes="http://www.obeo.fr/EMFJson" | ||
xsi:schemaLocation="http://www.obeo.fr/EMFJson ../../../nodes.ecore"> | ||
<multiStringAttribute>ABC</multiStringAttribute> | ||
<multiStringAttribute>ABCDEF</multiStringAttribute> | ||
<multiStringAttribute>ABCDEFGHI</multiStringAttribute> | ||
</nodes:NodeMultiValuedAttribute> |