Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10662

Make LuceneTestCase to not extend from org.junit.Assert

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • None
    • None
    • general/test
    • None
    • New

    Description

      Since LuceneTestCase is a very useful abstract class that can be extended and used by many projects, having it extending org.junit.Assert limits all users to exclusively use the static methods of org.junit.Assert. In our project we want to use https://joel-costigliola.github.io/assertj where the main method to call is org.assertj.core.api.Assertions.assertThat which conflicts with the deprecated org.junit.Assert.assertThat, recognized by default by the compiler. So one can only use assertj if on every call uses fully qualified name for the assertThat method, i.e.

       

      org.assertj.core.api.Assertions.assertThat(myObj.name()).isEqualTo(expectedName)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matriv Marios Trivyzas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m