Skip to content

Commit

Permalink
Removing escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinthakaJ98 committed Jul 17, 2024
1 parent e629556 commit 2b4d488
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions samples/ExceptionHandling/src/test/wso2mi/TimeoutAPITest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<assertions>
<assertEquals>
<actual>$body</actual>
<expected>{&quot;MESSAGE&quot;: &quot;An unexpected error occurred.&quot;,&quot;REST_API&quot;: &quot;TimeoutAPI&quot;,&quot;ERROR_CODE&quot;: 101504,&quot;ERROR_MESSAGE&quot;: Send timeout,
&quot;ERROR_DETAIL&quot;: ,&quot;ERROR_EXCEPTION&quot;:
}</expected>
<expected><![CDATA[{"MESSAGE": "An unexpected error occurred.","REST_API": "TimeoutAPI","ERROR_CODE": 101504,"ERROR_MESSAGE": Send timeout,
"ERROR_DETAIL": ,"ERROR_EXCEPTION":
}]]></expected>
<message>Invalid payload in TimoutAPI test case.</message>
</assertEquals>
</assertions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<assertions>
<assertEquals>
<actual>$body</actual>
<expected>{&quot;LookupCityResult&quot;:{&quot;City&quot;:&quot;Chicago&quot;,&quot;State&quot;:&quot;IL&quot;,&quot;Zip&quot;:60601}}</expected>
<expected><![CDATA[{"LookupCityResult":{"City":"Chicago","State":"IL","Zip":60601}}]]></expected>
<message>REST to SOAP test failed.</message>
</assertEquals>
</assertions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
<input>
<request-path>/users</request-path>
<request-method>POST</request-method>
<payload>&lt;user&gt;&lt;name&gt;Sam&lt;/name&gt;&lt;job&gt;Scientist&lt;/job&gt;&lt;/user&gt;</payload>
<payload><![CDATA[<user><name>Sam</name><job>Scientist</job></user>]]></payload>
</input>
<assertions>
<assertEquals>
<actual>$body</actual>
<expected>&lt;response&gt;&lt;status&gt;successful&lt;/status&gt;&lt;id&gt;454&lt;/id&gt;&lt;name&gt;Sam&lt;/name&gt;&lt;job&gt;Scientist&lt;/job&gt;&lt;createdAt&gt;2019-09-26T18:45:30.501Z&lt;/createdAt&gt;&lt;/response&gt;</expected>
<expected><![CDATA[<response><status>successful</status><id>454</id><name>Sam</name><job>Scientist</job><createdAt>2019-09-26T18:45:30.501Z</createdAt></response>]]></expected>
<message>Xml to json test case failed.</message>
</assertEquals>
</assertions>
Expand Down

0 comments on commit 2b4d488

Please sign in to comment.