[Cosmo-dev] Test failures from likely user error
Jared Rhine
jared at wordzoo.com
Mon May 8 14:40:46 PDT 2006
Everyone says their Cosmo unit tests are running fine, but I've been getting
these errors for as long as I've been working with a recent fresh checkout:
[junit] Running org.osaf.cosmo.dao.jcr.JcrUserDaoTest
[junit] Tests run: 14, Failures: 2, Errors: 0, Time elapsed: 27.59 sec
[junit] [ERROR] TEST org.osaf.cosmo.dao.jcr.JcrUserDaoTest FAILED
[junit] Running org.osaf.cosmo.dao.jcr.JcrTicketDaoTest
[junit] Tests run: 11, Failures: 0, Errors: 2, Time elapsed: 24.391 sec
[junit] [ERROR] TEST org.osaf.cosmo.dao.jcr.JcrTicketDaoTest FAILED
[junit] Running org.osaf.cosmo.dav.Bug5590Test
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5.837 sec
I'm not expecting anything, as tests are apparently working for others, but
thought I'd post it for the record. And maybe there's something in these
errors that makes the problem obvious to the initiated.
My target/test-reports/JcrUserDaoTest.txt:
-----
Testsuite: org.osaf.cosmo.dao.jcr.JcrUserDaoTest
Tests run: 14, Failures: 2, Errors: 0, Time elapsed: 27.59 sec
Testcase: testGetUsersNoUsers(org.osaf.cosmo.dao.jcr.JcrUserDaoTest): FAILED
Found users
junit.framework.AssertionFailedError: Found users
at
org.osaf.cosmo.dao.jcr.JcrUserDaoTest.testGetUsersNoUsers()V(Unknown Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lan\
g.Object;(Unknown Source)
Testcase: testGetUsers(org.osaf.cosmo.dao.jcr.JcrUserDaoTest): FAILED
Not 4 users
junit.framework.AssertionFailedError: Not 4 users
at org.osaf.cosmo.dao.jcr.JcrUserDaoTest.testGetUsers()V(Unknown Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lan\
g.Object;(Unknown Source)
-----
My target/test-reports/JcrTicketDaoTest.txt:
-----
Testsuite: org.osaf.cosmo.dao.jcr.JcrTicketDaoTest
Tests run: 11, Failures: 0, Errors: 2, Time elapsed: 24.391 sec
Testcase:
testGetInheritedTicketNotFound(org.osaf.cosmo.dao.jcr.JcrTicketDaoTest):
Caused an ERROR
{http://osafoundation.org/cosmo}user: already contained in mixin types
javax.jcr.RepositoryException: {http://osafoundation.org/cosmo}user: already
contained in mixin types
at org.apache.jackrabbit.core.NodeImpl.addMixin(NodeImpl.java:1004)
at org.apache.jackrabbit.core.NodeImpl.addMixin(NodeImpl.java:2401)
at
org.osaf.cosmo.dao.jcr.JcrTestHelper.makeAndStoreDummyUser()Lorg.osaf.cosmo.model.User;(Unknown
Source)
at
org.osaf.cosmo.dao.jcr.JcrTicketDaoTest.testGetInheritedTicketNotFound()V(Unknown
Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lan\
g.Object;(Unknown Source)
Testcase: testCreateTicket(org.osaf.cosmo.dao.jcr.JcrTicketDaoTest):
Caused an ERROR
{http://osafoundation.org/cosmo}user: already contained in mixin types
javax.jcr.RepositoryException: {http://osafoundation.org/cosmo}user: already
contained in mixin types
at org.apache.jackrabbit.core.NodeImpl.addMixin(NodeImpl.java:1004)
at org.apache.jackrabbit.core.NodeImpl.addMixin(NodeImpl.java:2401)
at
org.osaf.cosmo.dao.jcr.JcrTestHelper.makeAndStoreDummyUser()Lorg.osaf.cosmo.model.User;(Unknown
Source)
at
org.osaf.cosmo.dao.jcr.JcrTicketDaoTest.testCreateTicket()V(Unknown Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lan\
g.Object;(Unknown Source)
-----
More information about the cosmo-dev
mailing list