JavaHamcrest
JavaHamcrest copied to clipboard
Correctly failing containsInAnyOrder assertion causing java.lang.NoSuchMethodError
The following JUnit can reproduce: @Test public void enumTest() { Set<DayOfWeek> dayOfWeekSet = new HashSet<>(); dayOfWeekSet.add(DayOfWeek.MONDAY); // I expect this to fail. assertThat(dayOfWeekSet, containsInAnyOrder(DayOfWeek.values())); }
I'm using:
I'm not certain what caused this problem for OP, but I can't reproduce this error.
@kmbyrne I know it's been 3 years, but can you provide any further details about what the unexpected error message said when you encountered this?