Skip to content

Commit

Permalink
fixed test to not rely on serialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgyori committed Jun 23, 2016
1 parent 49a87b3 commit 5aad236
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ interface Service {
assertThat(body.getCount()).isEqualTo(10);

RecordedRequest request = server.takeRequest();
assertThat(request.getBody().readUtf8()).isEqualTo(
"<my-object><message>hello world</message><count>10</count></my-object>");
assertThat(request.getBody().readUtf8()).isIn(
"<my-object><message>hello world</message><count>10</count></my-object>",
"<my-object><count>10</count><message>hello world</message></my-object>");
assertThat(request.getHeader("Content-Type")).isEqualTo("application/xml; charset=UTF-8");
}

Expand Down

0 comments on commit 5aad236

Please sign in to comment.