|
[
Permlink
| « Hide
]
Michael Watzek added a comment - 24/Nov/05 05:46 PM
The attched patch implements the assertions above.
Michael Watzek made changes - 24/Nov/05 05:46 PM
A few comments about
DeleteCallback: - There is a type in the javadoc of method queryUpdateDeleteVerify: hoplder. The javadoc says: "... makes dirty all queried pc instances calling ...". I would say: "marks all queried pc instances as dirty by calling ... ". - Method verifyCallbacksAndStates lists the oids of the deleted instances in an error message. Maybe it should say that the values are oids and not pc instances. DeleteQueryElements - I like the idea of describing why a query listed in INVALID_QUERIES is not valid for delete by query. Maybe you can add this for all the queries: Invalid for delete by query, because ... - The valid query is a unique query, but the expected number of deleted instances is 3! The second patch implements the comments above.
Michael Watzek made changes - 28/Nov/05 10:08 PM
Looks good.
However, I propose to update the comments in DeleteQueryElements, because I think some of them are misleading, e.g. "The query may fail because there is a result, or because there is a result class". This sounds like you try to test two scenarios with a single query. Actually, there is one test query having a result clause, another having a result class and this test query has both a result clause and a result class. So I think your test class coveres everything we should test. I propose to change the comment to: "This query is an invalid delete query, because it defines a result clause and a result class". Please have a look at the other comments in INVALID_QUERIES. The comments above have been incorporated into the second patch. The second patch has been checked in (Revision 350282).
Michael Watzek made changes - 02/Dec/05 02:32 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||