Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-887

Assertion oversight in TestLibService

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.3.0, 2.0.0-M1, 2.0.0-M2
    • 1.3.0, 2.0.0-M2
    • None
    • None

    Description

      There is a small but quite nasty oversight in TestLibService class:

      assertNotNull("could not find the reference from " + bName + "'s volunteer status back to " + bName, volunteer.getBorrower() == borrower);

      I suspect the intention was to have assertTrue(...). The above compiles because of autoboxing creating a Boolean but the assertion is always true, even if volunteer.getBorrower() != borrower.

      Attachments

        1. OPENJPA-887.patch
          0.8 kB
          Milosz Tylenda

        Activity

          People

            milosz Milosz Tylenda
            milosz Milosz Tylenda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: