Skip to content

Commit a836454

Browse files
committed
fix test
1 parent 715bc97 commit a836454

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dropwizard-guicey/src/test/groovy/ru/vyarus/dropwizard/guice/url/resource/ResourceAnalyzerTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ void testErrors() {
272272

273273
assertThatThrownBy(() -> ResourceAnalyzer.findMethod(DirectResource.class, "get"))
274274
.isInstanceOf(IllegalStateException.class)
275-
.hasMessage("Method with name 'get' is not unique in class 'DirectResource': Response get(MappedBean), Response get(String, String, String, String, String)");
275+
.hasMessageStartingWith("Method with name 'get' is not unique in class 'DirectResource'")
276+
.hasMessageContaining("Response get(MappedBean)")
277+
.hasMessageContaining("Response get(String, String, String, String, String)");
276278

277279
assertThatThrownBy(() -> ResourceAnalyzer.findHttpMethod(RootResource.class.getMethod("sub1")))
278280
.isInstanceOf(IllegalStateException.class)

0 commit comments

Comments
 (0)