-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #62: Port component tests to expression language.
- Loading branch information
Showing
17 changed files
with
114 additions
and
176 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
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
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
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
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
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
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
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
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
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
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
22 changes: 12 additions & 10 deletions
22
...with-xml/components/referenceDocument.yml → ...ith-xml/components/reference-document.yml
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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
- | ||
- | ||
xml: | ||
<documentReference lgCode="en" format="HTML" type="REF" action="UPDATE"> | ||
<documentReferenceName>Filename</documentReferenceName> | ||
<documentReferencePath>path</documentReferencePath> | ||
<documentReferenceSize>10kB</documentReferenceSize> | ||
<documentReferenceRemark>Remark</documentReferenceRemark> | ||
<documentReferenceFile>File</documentReferenceFile> | ||
</documentReference> | ||
- getLanguage : "en" | ||
getFormat : "HTML" | ||
getType : "REF" | ||
getAction : "UPDATE" | ||
getName : "Filename" | ||
getPath : "path" | ||
getSize : "10kB" | ||
getRemark : "Remark" | ||
getFile : "File" | ||
|
||
expressions: | ||
- message.getLanguage() == "en" | ||
- message.getFormat() == "HTML" | ||
- message.getType() == "REF" | ||
- message.getAction() == "UPDATE" | ||
- message.getName() == "Filename" | ||
- message.getPath() == "path" | ||
- message.getSize() == "10kB" | ||
- message.getRemark() == "Remark" | ||
- message.getFile() == "File" |
18 changes: 18 additions & 0 deletions
18
tests/src/fixtures/factories/with-xml/components/return-address.yml
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,18 @@ | ||
- | ||
xml: | ||
<retour type="webService" action="INSERT"> | ||
<retourUser>Username</retourUser> | ||
<retourPassword>Password</retourPassword> | ||
<retourAddress>Url</retourAddress> | ||
<retourPath>Path</retourPath> | ||
<retourRemark>Remark</retourRemark> | ||
</retour> | ||
|
||
expressions: | ||
- message.getType() == "webService" | ||
- message.getAction() == "INSERT" | ||
- message.getUser() == "Username" | ||
- message.getPassword() == "Password" | ||
- message.getAddress() == "Url" | ||
- message.getPath() == "Path" | ||
- message.getRemark() == "Remark" |
16 changes: 0 additions & 16 deletions
16
tests/src/fixtures/factories/with-xml/components/returnAddress.yml
This file was deleted.
Oops, something went wrong.
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
28 changes: 16 additions & 12 deletions
28
tests/src/fixtures/factories/with-xml/components/status.yml
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 |
---|---|---|
@@ -1,25 +1,29 @@ | ||
- | ||
- | ||
xml: | ||
<status code="0" type="request"> | ||
<statusDate format="dd/mm/yyyy">15/01/2017</statusDate> | ||
<statusTime format="hh:mm:ss">12:30:00</statusTime> | ||
<statusMessage>OK</statusMessage> | ||
</status> | ||
- "15/01/2017" | ||
- "12:30:00" | ||
- "OK" | ||
- "0" | ||
- "request" | ||
|
||
expressions: | ||
- message.getDate() == "15/01/2017" | ||
- message.getTime() == "12:30:00" | ||
- message.getMessage() == "OK" | ||
- message.getCode() == "0" | ||
- message.getType() == "request" | ||
|
||
- | ||
- | ||
xml: | ||
<status type="request"> | ||
<statusTime format="hh:mm:ss">12:30:00</statusTime> | ||
<statusMessage>OK</statusMessage> | ||
</status> | ||
- null | ||
- "12:30:00" | ||
- "OK" | ||
- null | ||
- "request" | ||
|
||
expressions: | ||
- message.getDate() == null | ||
- message.getTime() == "12:30:00" | ||
- message.getMessage() == "OK" | ||
- message.getCode() == null | ||
- message.getType() == "request" | ||
|
Oops, something went wrong.