Patch for new test cases
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > Patch for new test cases




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Patch for new test cases  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-05-05 12:45 PM

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/PCPointSingleFieldCharac
ter.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimit
ivebyte.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldIntege
r.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleField.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldLong.j
ava
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldShort.
java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldByte.j
ava
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimit
iveint.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimit
ivechar.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldString
.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimit
ivelong.java
A
test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldPrimit
iveshort.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/AbstractGetPMF.ja
va
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/GetPMFByFileAndCl
assLoader.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/GetPMFByFile.java
A
test/java/org/apache/jdo/tck/api/persistencemanagerfactory/GetPMFByResourceA
ndClassLoader.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/AbstractPersistenceCapab
leTest.java
A
test/java/org/apache/jdo/tck/api/persistencecapable/CopyKeyFieldsFromObjectI
d.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/packa
ge.jdo
A
test/orm/applicationidentity/org/apache/jdo/tck/pc/singlefieldidentity
A
test/orm/applicationidentity/org/apache/jdo/tck/pc/singlefieldidentity/packa
ge-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/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Re: Patch for new test cases  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-05-05 10: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/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register