|
[
Permlink
| « Hide
]
Michael Watzek added a comment - 10/Nov/05 10:32 PM
The attached patch implements the assertions above.
Michael Watzek made changes - 10/Nov/05 10:32 PM
Looks good, just a few comments:
QueryTest, ConversionHelper: - These changes are already checked in as part of patch ResultClassRequirements: - The constructor test query should not define a result class using an INTO clause? - I like the idea of having comments in the INVALID_QUERIES explaining why the query is invalid. I propose to add "salary field is not assignment compatible" to query with index 3. VariableInResult: - The string "orange" in the expected result is not a bean name, correct? - I propose to split the test method testPositive into two methods. Then the first test method needs to convert the expected by calling getCompanyModelInstances where the second test method takes the expected result as it is. DefaultUnique: - Today the unique setting in the QueryElementHolder determines whether to expect a unique query result or not. This does not work if we want to check the default handling for unique. I think we need to add an overloaded execute method in QueryTest that takes the unique flag instead of calculating it from the unique setting of the QueryElementHolder. NoArgsConstructor: - I was confused because the class NoArgsConstructor does not have a no-args constructor. How about MissingNoArgsConstructor? - The toString method misses to include the value of the field l. NoFieldsNoMethods: - Please update the class javadoc. DistintCandidateInstances: - How about splitting method testPositive in two test methods: testExtentQueries and testCollectionQueries? - I propose to put pc instances into the collection used as query candidate collection. - The test should explicitly define a candidate class. The second patch implements the comments above.
Furthermore, the patch implements the comments in
Michael Watzek made changes - 18/Nov/05 02:09 AM
The patch looks good. Class Unique has the comment talking about avoiding file I/O which we can remove.
The second patch has been checked in (Revision 345921).
Michael Watzek made changes - 22/Nov/05 01:06 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||