|
Home > Archive > Apache JDO Project > July 2005 > Patch for new test cases
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Patch for new test cases
|
|
| Michael Watzek 2005-07-05, 7:45 am |
| Hi Craig,
please find the attached patch containing test cases for assertions
A7.12-38, A7.12-39, A7.12-25, A8.6-13 - A8.6-16. Please note, that this
patch does not contain test cases for assertions A8.6-17 - A8.6-20. I'll
send those in a separate patch. Those test cases require JDOHelper
getPersistenceManagerFactory methods to be added wrt. JNDI name aruments
and arguments of type InputStream.
The patch adds several files to your workspace. Please perform a "svn
add ..." for those files before you commit the patch. Below you find the
ouput of "svn status" of my TCK20 workspace.
Please note, that the patch changes the schemas for application identity
and datastore identity adding tables for single field identity PC
classes. You *must* call "maven installSchema" before you run the patch.
On my system, a TCK run including this patch with JPOX version
20050628.022353 has the following outcome:
Application identity:
Tests run: 382, Failures: 14, Errors: 91, Time: 226,844 seconds.
Datastore identity:
Tests run: 382, Failures: 14, Errors: 86, Time: 193,109 seconds.
Regards,
Michael
FYI: This patch also contains changes on class "BatchResultPrinter". I
added an error summery to the output grouping errors wrt. the root cause
in the form:
<nrOfErrors>: <messageOfRootCause>
Having this summery of errors, it is much easier to compare TCK runs and
to find out the number of different bugs.
....\trunk\tck20>svn status
M test/sql/derby/applicationidentity/schema.sql
A test/java/org/apache/jdo/tck/pc/singlefieldidentity
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldCharacter.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimitivebyte.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldInteger.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleField.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldLong.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldShort.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldByte.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimitiveint.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimitivechar.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldString.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimitivelong.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimitiveshort.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/AbstractGetPMF.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/GetPMFByFileAndClassLoader.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/GetPMFByFile.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/GetPMFByResourceAndClassLoader.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/GetPMFByResource.java
A test/java/org/apache/jdo/tck/api/persistencecapable
A
test/java/org/apache/jdo/tck/api/persistencecapable/AbstractPersistenceCapableTest.java
A
test/java/org/apache/jdo/tck/api/persistencecapable/CopyKeyFieldsFromObjectId.java
A
test/java/org/apache/jdo/tck/api/persistencecapable/NewObjectIdInstance.java
M test/java/org/apache/jdo/tck/util/BatchResultPrinter.java
M test/conf/alltests.conf
A
test/jdo/applicationidentity/org/apache/jdo/tck/pc/singlefieldidentity
A
test/jdo/applicationidentity/org/apache/jdo/tck/pc/singlefieldidentity/package.jdo
A
test/orm/applicationidentity/org/apache/jdo/tck/pc/singlefieldidentity
A
test/orm/applicationidentity/org/apache/jdo/tck/pc/singlefieldidentity/package-derby.orm
M project.properties
--
-------------------------------------------------------------------
Michael Watzek Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de Buelowstr. 66
Tel.: ++49/30/235 520 36 10783 Berlin - Germany
Fax.: ++49/30/217 520 12 http://www.spree.de/
-------------------------------------------------------------------
| |
| Michael Watzek 2005-07-05, 5:45 pm |
| Hi Craig,
please do not checkin this patch. It contains a bug wrt. classes
GetPMFByFile, GetPMFByFileAndClassLoader, GetPMFByResource,
GetPMFByResourceAndClassLoader. Each of these misses classes miss to
override two methods defined in the super class AbstractGetPMF. That's
why each of these test cases result in a failure. The output is
RUN TestSuite$1.warning FAILURE
warning(junit.framework.TestSuite$1)junit.framework.AssertionFailedError:
Test method isn't public: testSuccess
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:128)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:106)
I'll send a new patch later today.
Sorry for the inconvenience,
Michael
--
-------------------------------------------------------------------
Michael Watzek Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de Buelowstr. 66
Tel.: ++49/30/235 520 36 10783 Berlin - Germany
Fax.: ++49/30/217 520 12 http://www.spree.de/
-------------------------------------------------------------------
|
|
|
|
|