|
[
Permlink
| « Hide
]
Michael Watzek added a comment - 21/Nov/05 10:28 PM
The attached patch implements the assertions above.
Looks good. Some comments:
ShapeOfResult: - I guess the "C" in the comment of the first two queries in VALID_SQL_QUERIES means candidate class, correct? - At the first glance the code looks like you missed testing queries 3, 5, and 7. Then I figured out the test methods calls a method which calls another method which then executes two queries. I think the code would be easier if the test methods directly execute the two SQL queries. AllowedAPIMethods: - Please add a comment to method testNegative describing that the SQL query is correct, but the test calls Query API method that are not allowed for SQL queries. Maybe rename checkSetters to checkProhibitedSetters. QueryTests: - Please add a sentence to the javadoc of method executeSQLQuery desribing that the sql parameter may have an argument {0} which is replaced by the current schema name. The second patch implements the comments above.
Looks good, no comments!
The second patch has been checked in (Revision 348505).
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||