hprange / wounit

The WOUnit framework contains a set of utilities for testing WebObjects applications using JUnit 4.7 or later capabilities.
http://hprange.github.io/wounit/
Apache License 2.0
19 stars 18 forks source link

Testing from the command line does not work #19

Closed mariussoutier closed 12 years ago

mariussoutier commented 12 years ago

test: [junit] Testsuite: net.starhealthcare.sffoundation.model.SFGoalTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.3 sec [junit] ------------- Standard Error ----------------- [junit] log4j:WARN No appenders could be found for logger (er.extensions.eof.ERXEC). [junit] log4j:WARN Please initialize the log4j system properly. [junit] [2011-9-22 12:11:56 CEST] Couldn't load properties file: /Users/marius/WebObjects.properties at path: /Users/marius [junit] [2011-9-22 12:11:56 CEST] Couldn't load properties file: /Users/marius/WebObjects.properties at path: /Users/marius [junit] ------------- ---------------- --------------- [junit] Testcase: shouldCloneCorrectlyWhenEditingAGoal(net.starhealthcare.sffoundation.model.SFGoalTest): Caused an ERROR [junit] java.lang.reflect.InvocationTargetException [junit] com.webobjects.foundation.NSForwardException [java.lang.reflect.InvocationTargetException] null:java.lang.reflect.InvocationTargetException [junit] at com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:626) [junit] at com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:665) [junit] at com.webobjects.eoaccess.EOEntityClassDescription.createInstanceWithEditingContext(EOEntityClassDescription.java:242) [junit] at com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java:861) [junit] at com.wounit.rules.AbstractEditingContextRule$UnderTestFactory.create(AbstractEditingContextRule.java:61) [junit] at com.wounit.rules.AnnotationProcessor.process(AnnotationProcessor.java:88) [junit] at com.wounit.rules.AbstractEditingContextRule.before(AbstractEditingContextRule.java:150) [junit] at com.wounit.rules.MockEditingContext.before(MockEditingContext.java:142) [junit] at com.wounit.rules.AbstractEditingContextRule$1.evaluate(AbstractEditingContextRule.java:130) [junit] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [junit] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424) [junit] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138) [junit] Caused by: java.lang.reflect.InvocationTargetException [junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [junit] at com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659) [junit] Caused by: java.lang.IllegalStateException: Unable to get the name of the class to instantiate for the adaptor framework JavaJDBCAdaptor. The possible causes for this error are: the adaptor framework is not installed on your system, the adaptor framework is not linked into your application, or the info dictionary for this adaptor is corrupted. [junit] at com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:264) [junit] at com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:287) [junit] at com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:312) [junit] at com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:624) [junit] at com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699) [junit] at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998) [junit] at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816) [junit] at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789) [junit] at com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:1098) [junit] at com.webobjects.eoaccess.EOEntity._propertyDictionaryInitializer(EOEntity.java:3321) [junit] at com.webobjects.eoaccess.EOEntity._newDictionaryForProperties(EOEntity.java:3667) [junit] at com.webobjects.eoaccess.EOEntityClassDescription._newDictionaryForProperties(EOEntityClassDescription.java:88) [junit] at com.webobjects.eocontrol.EOGenericRecord.setClassDescription(EOGenericRecord.java:111) [junit] at com.webobjects.eocontrol.EOGenericRecord.setClassDescription(EOGenericRecord.java:100) [junit] at com.webobjects.eocontrol.EOGenericRecord.(EOGenericRecord.java:73) [junit] at er.extensions.eof.ERXGenericRecord.(ERXGenericRecord.java:99) [junit] at net.starhealthcare.sffoundation.model.SFGenericRecord.(SFGenericRecord.java:19) [junit] at net.starhealthcare.sffoundation.model.base._SFGoal.(_SFGoal.java:15) [junit] at net.starhealthcare.sffoundation.model.SFGoal.(SFGoal.java:19) [junit] Test net.starhealthcare.sffoundation.model.SFGoalTest FAILED

mariussoutier commented 12 years ago

I'm not sure if this is related to WOUnit at all...

hprange commented 12 years ago

Have you solved this problem?

mariussoutier commented 12 years ago

Yes, that's why I closed the issue.

hprange commented 12 years ago

I had a similar problem building a project on Hudson in the past. Now I'm not sure if it is a WOUnit problem or not.

mariussoutier commented 12 years ago

I don't remember what I did wrong here, but it had nothing to with WOUnit, I'm certain.