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

Assertion oversight in TestLibService

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 2.0.0-M1, 2.0.0-M2
    • Fix Version/s: 1.3.0, 2.0.0-M2
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: