by agentgt · 10y ago · 0 comments
Besides AssertJ being easier to use and IMO more elegant than Hamcrest, JUnit 5 will be removin `assertThat`.
I contemplated filing a bug/request but its more of a conversation point than an issue.
I think you misread that bug report.
>Closing this issue since there are no plans to include direct dependencies on third-party assertion libraries within JUnit 5.The OP shows examples assertions using JUnit 4 and hamcrest assertThat. The OP could use the builtin assert for all I care but I sort of got the gist they were trying to show the canonical approach. This is not to critique but rather to inform.