-
Notifications
You must be signed in to change notification settings - Fork 383
Description
hamcrest-junit used to have MatcherAssume class with static method assumeThat:
https://www.javadoc.io/doc/org.hamcrest/hamcrest-junit/latest/org/hamcrest/junit/MatcherAssume.html#assumeThat(T,%20org.hamcrest.Matcher)
This appears to have been accidentally(?) omitted when relocating org.hamcrest.junit.* to org.hamcrest.
JUnit subsequently have deprecated Assert.assertThat on the basis that Hamcrest's MatcherAssert has it.
This now leaves us in a weird situation where we import JUnit's Assume.assumeThat while importing Hamcrest's MatcherAsserts.assertThat.
(People wanting to use JUnit 5 would probably be in an even worse situation, because JUnit 5 doesn't have assumeThat in any form, as far as I can tell, and neither does Hamcrest, leading me to wonder what JUnit 5 users have been doing for assumeThat all this time...)
It would make sense to me if MatcherAssume were resurrected so that both can be imported from Hamcrest.