Matchers.containsInAnyOrder(expectedList)));java: no suitable method found for assertThat(java.util.List<Agent>,org.hamcrest.Matcher<T>assertThat(T,org.hamcrest.Matcher<T>) is not applicable
(no instance(s) of type variable(s) T existso that argument type
<T>assertThat(T,org.hamcrest.Matcher<?>> cannot be converted to org.hamcrest.Matcher<?<T>assertThat(java.lang.String,T,org.hamcrest.Matcher<?为什么编译器似乎认为实际的参数是org.hamcrest.Matcher<java.util.Collection<java.lang.Object>>类型,而显然应该
jetified-hamcrest-core-1.3.jar (org.hamcrest:hamcrest-core:1.3) and jetified-java-hamcrest-2.0.0.0.jar(org.hamcrest:java-hamcrest:2.0.0.0)
Duplicate class org.hamcrest.BaseMatcher found in modules jetified-hamcrest-core-1.3.jar
org.hamcrest.Description found in modules jetified-hamcrest-core-1.1.jar (org.hamcrest:hamcrest-coreorg.hamcrest.core.AllOf found in modules jetified-hamcrest-core-1.1.jar (org.hamcrest:hamcrest-core:org.hamcrest.core.I