Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5811 Update Junit from 4 to 5
  3. TRUNK-5812

Replace all Junit4 assertThat with Hamcrest assertThat

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • TBD
    • Resolution: Fixed
    • None
    • Core 2.4.0
    • None
    • Undetermined

    Description

      Background

      Junit 5 will no longer have an assertThat method. Junits own assertThat was deprecated in 4.13 so that developers transition away from it to for example the assertThat of Hamcrest.

      For details see https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.md#pull-request-1150-deprecate-assertassertthat

      Task

      The task  is to replace all Junit4 assertThat with Hamcrest assertThat:

      org.junit.Assert.assertThat --> org.hamcrest.MatcherAssert.assertThat

       

      Gliffy Diagrams

        Attachments

          Activity

            People

              achilep Pahonsi Bebeto Achile
              achilep Pahonsi Bebeto Achile
              Pahonsi Bebeto Achile Pahonsi Bebeto Achile
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: