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

enhance unit tests with the correct persistence.xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.1, 2.1.0
    • Fix Version/s: 2.1.0, 2.2.0
    • Component/s: build / infrastructure
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      in OPENJPA-1900 I found out that we do not enhance our entities with the configuration which get used later while running the unit tests.

      But enhancing sometimes has a huge implication on the behaviour! Thus we should always try to use the same persistence.xml for enhancing as we do for running the unit tests.

      This small patch fixes the usage for our proxy tests which use openjpa.DetachState=fetch-groups (leading to Externalizable entities)

        Activity

        Hide
        mikedd Michael Dick added a comment -

        Is the update to the maven plugin version needed here? I'm not opposed to upgrading, but it seems extraneous for this problem.

        Show
        mikedd Michael Dick added a comment - Is the update to the maven plugin version needed here? I'm not opposed to upgrading, but it seems extraneous for this problem.
        Hide
        struberg Mark Struberg added a comment -

        it's not needed, should get moved to an own issue.

        Show
        struberg Mark Struberg added a comment - it's not needed, should get moved to an own issue.

          People

          • Assignee:
            mikedd Michael Dick
            Reporter:
            struberg Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development