You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-dev@incubator.apache.org by David Sean Taylor <da...@bluesunrise.com> on 2005/01/20 23:26:09 UTC

unit tests

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....

-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

Re: unit tests

Posted by Christophe <ch...@sword-technologies.com>.
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....
>