Issue Details (XML | Word | Printable)

Key: JDO-202
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Bouschen
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

orm.xsd and unit tests for xsd are missing

Created: 05/Nov/05 06:18 AM   Updated: 25/Feb/06 07:48 AM
Return to search
Component/s: api2
Affects Version/s: JDO 2 beta
Fix Version/s: JDO 2 final

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works schematest.patch 2006-01-07 11:00 AM Craig Russell 4 kB
Text File Licensed for inclusion in ASF works schemaValidation-060212.patch 2006-02-13 07:41 AM Michael Bouschen 16 kB
Text File Licensed for inclusion in ASF works schemaValidation-060218.patch 2006-02-19 06:02 AM Michael Bouschen 63 kB
Text File Licensed for inclusion in ASF works schemaValidation-060220.patch 2006-02-21 07:45 AM Michael Bouschen 62 kB
Text File Licensed for inclusion in ASF works XSD.patch 2006-02-12 02:38 PM Craig Russell 1 kB

Resolution Date: 25/Feb/06 07:48 AM


 Description  « Hide
The xsd is missing from api20/src/dtd/javax/jdo and there is no test for it. Also need a test for jdo.xsd.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell added a comment - 18/Dec/05 05:17 AM
This change adds orm.xsd to the jdo implementation, but it has not been tested.

Committed revision 357371.

Craig Russell added a comment - 18/Dec/05 07:12 AM
This change adds orm.xsd to the jdo implementation, but it has not been tested.

Committed revision 357371.

Craig Russell added a comment - 07/Jan/06 10:00 AM
This issue has two parts. The first part is a program that validates xml files according to schema or DTD that is passed in. The program should look for files that have the suffixes .jdo, .orm, and .jdoquery and validate them against both the DTD and schema.

For example, javax.jdo.schema.SchemaTest is the JUnit test that looks for files with the pattern "positiveXXX.jdo, positiveXXX.orm, positiveXXX.jdoquery, negativeXXX.jdo, negativeXXX.orm, negativeXXX.jdoquery" and simply loads them into a standard DOM using a validating parser. All test files named positiveXXX should succeed; tests named negativeXXX should fail to load.

The second part is a set of test data that is organized into positive and negative test cases. The union of positive tests should test every feature (each element and attribute) of each of the .orm, .jdo, and .jdoquery schema and DTD. Negative tests will verify for example that no more than one element is permitted if annotated as ? in DTD or maxOccurs=1 in schema.

Craig Russell added a comment - 07/Jan/06 11:00 AM
This is just some code to stimulate discussion.

Craig Russell added a comment - 12/Feb/06 02:38 PM
This patch fixes a syntax error in two of the .xsd files, in which the attributes were defined inside the element instead of outside.

Michael Bouschen added a comment - 13/Feb/06 07:41 AM
The attached patch schemaValidation-060212.patch adds a new test XMLTest.

Michael Bouschen added a comment - 19/Feb/06 06:02 AM
There is a new patch schemaValidation-060218.patch includes the new test class XMLTest, 6 positive and 2 negative test .jdo files. We still need to add test .orm and .jdoquery files.

Michael Bouschen added a comment - 21/Feb/06 07:45 AM
Attached you find a new patch schemaValidation-060220.patch for review. It changes the test .jdo files according to the latest jdo.dtd and jdo.xsd updates.

Craig Russell added a comment - 25/Feb/06 07:47 AM
A test program XMLTest has been added to the api20 project.