It seems that your DB is not clean. I don't understand why now !
Can you execute the following steps :
* go into graffito/trunk/components
* maven db.scripts.gen
*maven db.drop.test
* maven db.create.test

Send me all errors you have.
Thans, if you have no error, send me the complete output for maven allClean allBuild.


Christophe


David Sean Taylor wrote:

Unit Tests fail for me
Building without tests:

maven -Dmaven.test.skip=true allClean allBuild

builds fine.

Here are some errors:

Testcase: testCollectionByQuery(org.apache.portals.graffito.persistence.impl.TestPersistenceService): FAILED
Incorrect of number of retrieved cms object : number= 9
junit.framework.AssertionFailedError: Incorrect of number of retrieved cms object : number= 9
at org.apache.portals.graffito.persistence.impl.TestPersistenceService.testCollectionByQuery(TestPersistenceService.java:182)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


still learning the build....




  • unit tests David Sean Taylor
    • Re: unit tests Christophe

Reply via email to