JDO
  1. JDO
  2. JDO-258

Write tests for new persistent-nontransactional-dirty lifecycle assertions

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JDO 2 beta
    • Fix Version/s: JDO 2 final (2.0)
    • Component/s: tck
    • Labels:
      None

      Description

      A5.6.2-3 [A persistent-nontransactional-dirty instance transitions to hollow if it is the parameter of evict or evictAll. This allows the application to remove instances from the set of instances whose state is to be committed to the datastore.]

      A5.6.2-5 [The persistent-nontransactional-dirty instances will transition according to the RetainValues flag. With the RetainValues flag set to true, persistent-nontransactional-dirty instances will transition to persistent-nontransactional. With the RetainValues flag set to false, persistent-nontransactional-dirty instances will transition to hollow. ]

      A5.6.2-7 [The persistent-nontransactional-dirty instances will transition according to the RestoreValues flag. With the RestoreValues flag set to true, persistent-nontransactional-dirty instances will make no state transition, but the fields will be restored to their values as of the beginning of the transaction, and any changes made within the transaction will be discarded. With the RestoreValues flag set to false, persistent-nontransactional-dirty instances will transition to hollow.]

      A5.6.2-9 [The persistent-nontransactional-dirty instances will transition according to the RetainValues flag. With the RetainValues flag set to true, persistent-nontransactional-dirty instances will transition to persistent-nontransactional. With the RetainValues flag set to false, persistent-nontransactional-dirty instances will transition to hollow.]

      A5.6.2-11 [With the RestoreValues flag set to true, persistent-nontransactional-dirty instances will make no state transition, but the fields will be restored to their values as of the beginning of the transaction, and any changes made within the transaction will be discarded. With the RestoreValues flag set to false, persistent-nontransactional-dirty instances will transition to hollow.]

        Activity

        Hide
        Michael Watzek added a comment -

        The assertions of this issue have been implemented together with the assertions of JDO-273. The patch has been attached to JDO-273.

        Show
        Michael Watzek added a comment - The assertions of this issue have been implemented together with the assertions of JDO-273 . The patch has been attached to JDO-273 .
        Hide
        Martin Zaun added a comment -

        Combined patch for JDO-273 and JDO-258 committed with revision 388087.

        Show
        Martin Zaun added a comment - Combined patch for JDO-273 and JDO-258 committed with revision 388087.
        Hide
        Michelle Caisse added a comment -

        I added these assertions to the assertions spreadsheet.

        Show
        Michelle Caisse added a comment - I added these assertions to the assertions spreadsheet.

          People

          • Assignee:
            Craig L Russell
            Reporter:
            Michelle Caisse
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development