Skip to content

Instantly share code, notes, and snippets.

@marcphilipp
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcphilipp/9bad154239b72ac9d8fa to your computer and use it in GitHub Desktop.
Save marcphilipp/9bad154239b72ac9d8fa to your computer and use it in GitHub Desktop.
JUnit Modules

JUnit 5 Modules

New Group ID for Maven: org.junit

  • junit-assertion-api: Can be used by assertion frameworks like Hamcrest, AssertJ, or Truth.
    • org.junit.ComparisonFailure
    • org.junit.AssumptionViolatedException (without Matcher dependency)
  • junit-core (depends on junit-assertion-api)
    • No Hamcrest dependency (except for tests)

Elsewhere:

  • hamcrest-core depends on junit-assertion-api
  • hamcrest-junit depends on junit-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment