-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/epam/Wilma
- Loading branch information
Showing
37 changed files
with
334 additions
and
321 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,7 @@ status.txt | |
wilma-service-api-net/wilma-service-api/nuget.exe | ||
*.snk | ||
.vs/ | ||
MigrationBackup | ||
System.* | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ public void testFormatTemplate() { | |
|
||
byte[] formattedResponse = underTest.formatResponse(wilmaRequest, response, template.getBytes(), null); | ||
|
||
assertEquals(whitespaceFree(new String(formattedResponse)), whitespaceFree(expected)); | ||
assertEquals(whitespaceFree(expected), whitespaceFree(new String(formattedResponse))); | ||
} | ||
|
||
private String whitespaceFree(String string) { | ||
|
@@ -75,6 +75,8 @@ private String refundRequest() { | |
+ " \"number\":\"1\",\n" | ||
+ " \"name\":\"John Smith\",\n" | ||
+ " \"pet\":\"cat\",\n" | ||
+ " \"bool\":true,\n" | ||
+ " \"num\":7,\n" | ||
+ " \"email\":\"[email protected]\"\n" | ||
+ " }" | ||
+ " ]\n" | ||
|
@@ -88,7 +90,9 @@ private String refundTemplate() { | |
+ " {\n" | ||
+ " \"id\":\"$.request[0].id\",\n" | ||
+ " \"number\":\"$.request[0].number\",\n" | ||
+ " \"pet\":\"$.request[0].pet\"\n" | ||
+ " \"pet\":\"$.request[0].pet\",\n" | ||
+ " \"bool2\": \"$.request[0].bool\",\n" | ||
+ " \"num2\": \"$.request[0].num\"\n" | ||
+ " }\n" | ||
+ " ]\n" | ||
+ "}"; | ||
|
@@ -101,14 +105,18 @@ private String refundExpectedResponse() { | |
+ " {\n" | ||
+ " \"id\":\"103\",\n" | ||
+ " \"number\":\"1\",\n" | ||
+ " \"pet\":\"cat\"\n" | ||
+ " \"pet\":\"cat\",\n" | ||
+ " \"bool2\":true,\n" | ||
+ " \"num2\":7\n" | ||
+ " }\n" | ||
+ " ]" | ||
+ "}"; | ||
} | ||
|
||
private String gotRequest() { | ||
return "{\n" + " \"characters\":[\n" + " {\n" | ||
+ " \"bool\":true,\n" | ||
+ " \"num\": 7,\n" | ||
+ " \"name\":\"Jaime Lannister\",\n" | ||
+ " \"title\":\"The Kingslayer\",\n" | ||
+ " \"location\":\"King's Landing\"\n" + " },\n" | ||
|
Oops, something went wrong.