1.8-dev@6111 Openvpms-framework testing errors

Tim,

I dont normally bother with testing errors too much, but these cropped up in the last few iterations on my dev machine, and while I can still compile and run ok, I am wondering if its caused by some merging that I performed.  

test machine java7/mysql5.6

svn://svn.openvpms.org/openvpms/framework/branches/1.8-dev@6111

ArchetypeDescriptorDOTestCase.java

expected:<644> but was:<650>
    at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testNestedNodeDescriptors(ArchetypeDescriptorDOTestCase.java:165)
expected:<653> but was:<647>
    at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testDeleteNodeDescriptor(ArchetypeDescriptorDOTestCase.java:215)
expected:<650> but was:<653>
    at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testDelete(ArchetypeDescriptorDOTestCase.java:111)
expected:<656> but was:<653>
    at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testAddAssertionDescriptors(ArchetypeDescriptorDOTestCase.java:197)

PartyDOTestCase.java

expected:<0> but was:<1>

    at org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase.testPartySaveDeleteWithEntityIdentityDO(PartyDOTestCase.java:180)

expected:<11> but was:<10>

    at org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase.testAddRemoveEntityIdentities(PartyDOTestCase.java:205)

expected:<2> but was:<3>

    at org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase.testEntityRelationshipRemoval(PartyDOTestCase.java:305)

ArchetypeServicePartyTestCase.java:98) error not test failure.

Failed to execute query: select contact.location.1.0:22:49294a7f-1c33-11e4-b742-a5fcbb1c4ebb.
org.openvpms.component.business.service.archetype.ArchetypeServiceException
    at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:419)
    at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:154)
    at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:143)
    at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:174)
    at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
    at org.openvpms.component.business.dao.hibernate.im.party.PartyDO_$$_javassist_1.hashCode(PartyDO_$$_javassist_1.java)
    at java.util.HashMap.hash(HashMap.java:366)
    at java.util.HashMap.getEntry(HashMap.java:466)
    at java.util.HashMap.get(HashMap.java:421)
    at org.openvpms.component.business.dao.hibernate.im.common.Context.getCached(Context.java:312)
    at org.openvpms.component.business.dao.hibernate.im.common.AbstractAssembler.getObject(AbstractAssembler.java:69)
    at org.openvpms.component.business.dao.hibernate.im.party.ContactAssembler.assembleObject(ContactAssembler.java:94)
    at org.openvpms.component.business.dao.hibernate.im.party.ContactAssembler.assembleObject(ContactAssembler.java:37)
    at org.openvpms.component.business.dao.hibernate.im.common.IMObjectAssembler.assemble(IMObjectAssembler.java:178)
    at org.openvpms.component.business.dao.hibernate.im.common.CompoundAssembler.assemble(CompoundAssembler.java:118)
    at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$8.doInHibernate(IMObjectDAOHibernate.java:854)
    at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$8.doInHibernate(IMObjectDAOHibernate.java:843)
    at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
    at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
    at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.execute(IMObjectDAOHibernate.java:1123)
    at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.get(IMObjectDAOHibernate.java:843)
    at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.get(IMObjectDAOHibernate.java:486)
    at org.openvpms.component.business.service.archetype.ArchetypeService.get(ArchetypeService.java:326)
    at org.openvpms.component.business.service.AbstractArchetypeServiceTest.get(AbstractArchetypeServiceTest.java:128)
    at org.openvpms.component.business.service.archetype.ArchetypeServicePartyTestCase.testRemove(ArchetypeServicePartyTestCase.java:98)

 

Edit: the one thing that might be causing this is the sure-fire config

you use <forkMode>always</forkMode> which has been depreceated I updated my build to use 

                    <forkCount>1</forkCount>
                    <reuseForks>false</reuseForks>

which I believe is the new way of declaring test forking depending on test box cpu configs

anyway I am rerunning with the old method.

 

 

 

 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: 1.8-dev@6111 Openvpms-framework testing errors

Works for me. The above could occur if you were running other tests against the same database.

Syndicate content