提交 2b59c4b6 编写于 作者: J Jake Wharton 提交者: GitHub

Merge pull request #1871 from alexgyori/request-order

Fix test to not rely on the order
......@@ -210,8 +210,9 @@ public final class RequestBuilderTest {
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");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册