Skip to content

Commit

Permalink
Fix test to not rely on the order
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgyori committed Jun 21, 2016
1 parent 49a87b3 commit b713f31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions retrofit/src/test/java/retrofit2/RequestBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ Call<ResponseBody> method() {
buildRequest(Example.class);
fail();
} catch (IllegalArgumentException e) {
assertThat(e).hasMessage(
"Only one HTTP method is allowed. Found: PATCH and POST.\n for method Example.method");
assertThat(e.getMessage())
.isIn("Only one HTTP method is allowed. Found: PATCH and POST.\n for method Example.method",
"Only one HTTP method is allowed. Found: POST and PATCH.\n for method Example.method");
}
}

Expand Down

0 comments on commit b713f31

Please sign in to comment.