Skip to content

Consider migrating from JUnit 3/4 to JUnit Jupiter & JUnit 5 #189

@jbduncan

Description

@jbduncan

If we decide this is worth doing, we will have to take the following things into account.

  1. We should prefer JUnit Jupiter API's assertThrows over the try..fail..catch idiom
  2. We might want to use assertAll over just writing assertions one line after another, so that all potential assertion errors can be gathered and thrown together as one exception for easier debugging.
  3. We'll have to use assertTimeout or assertTimeoutPreemptively where we would have used @Test(timeout=...) or @Rule public Timeout timeout = ...
  4. We should consider using assertIterableEquals and assertLinesMatch where normal collection equality assertions are insufficient.
  5. And finally, if we use any custom @Rules or @Runners, we will need to find alternative extensions for JUnit Jupiter/5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions