db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes.
Date Wed, 26 Oct 2005 10:30:56 GMT
    [ http://issues.apache.org/jira/browse/JDO-162?page=comments#action_12355947 ] 

Michael Bouschen commented on JDO-162:
--------------------------------------

Some comments about the patch

CharacterAndStringLiterals.java:
- I propose to change the filter of the invalid query to "charNotNull == 'O.'". 
- I propose to add a new invalid query  using double quotes: "charNotNull == \"O.\""
- OR is not a valid operaor in JDOQL.
- I propose to add another valid query using double quotes:  stringNull.startsWith(\"Even\")
OR charNotNull == \"O\"

PositiveRange, RangeAsString:
- I propose to add another test query with a non zero from range.

IdentifiersEqualFieldNames:
- I think we need two test queries here:  one accesing a persistent field such as "this.firstname
= 'emp1First'" and another one uinsg a constatnt such as "this.personid < Byte.MAX_VALUE.


> Implement new JDO 2 query tests cases concerning other language changes.
> ------------------------------------------------------------------------
>
>          Key: JDO-162
>          URL: http://issues.apache.org/jira/browse/JDO-162
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-162.patch
>
> We need 5 new test classes, one for each of the following assertions: 
> - A14.6.2-42: There is no distinction made between character literals and String literals.
Single character String literals can be used wherever character literals are permitted. String
literals are allowed to be delimited by single quote marks or double quote marks. This allows
String literal filters to use single quote marks instead of escaped double quote marks.
> - A14.6.2-43: Identifiers that are persistent field names or public final static field
names are required to be supported by JDO implementations.
> - A14.6.8-1: setRange(long fromIncl, long toExcl).
> - A14.6.8-2: If ((toExcl - fromIncl) <= 0) evaluates to true, if the result of the
query execution is a List, the returned List contains no instances, and an Iterator obtained
from the List returns false to hasNext(). If the result of the query execution is a single
instance (setUnique(true)), it will have a value of null.
> - A14.6.8-3: setRange(String range).
> Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#OtherLanguageChanges.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message