• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bundle loading during unit testing outside Eclipse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundle loading during unit testing outside Eclipse


  • Subject: Re: Bundle loading during unit testing outside Eclipse
  • From: Marius Soutier <email@hidden>
  • Date: Thu, 22 Sep 2011 12:51:50 +0200

That error message wasn't exact enough, it was a problem with ERXLocalizer being initialized too early (in statics), and now I'm down to this:

   [junit] Testcase: net.starhealthcare.sffoundation.model.SFTaskTest: Caused an ERROR
    [junit] 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] 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.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
    [junit] at com.webobjects.eoaccess.EOAttribute.<init>(EOAttribute.java:998)
    [junit] at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
    [junit] at er.extensions.eof.ERXModelGroup.modifyModelsFromProperties(ERXModelGroup.java:1150)
    [junit] at er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:278)
    [junit] at er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:147)
    [junit] at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
    [junit] at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
    [junit] at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)
    [junit] at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)
    [junit] at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)
    [junit] at net.starhealthcare.sffoundation.test.SFModelTestCase.initWO(SFModelTestCase.java:74)
    [junit] at net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:52)
    [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)


On 22.09.2011, at 12:38, Paul Hoadley wrote:

Hi Marius,

On 22/09/2011, at 7:27 PM, Marius Soutier wrote:

I face the same problem when I run my WOUnit tests locally from Ant:

    [junit] Cannot load model named 'SFFoundationEOModel'
    [junit] java.lang.IllegalArgumentException: Cannot load model named 'SFFoundationEOModel'
    [junit] at com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:178)
    [junit] at com.wounit.rules.AbstractEditingContextRule.<init>(AbstractEditingContextRule.java:86)
    [junit] at com.wounit.rules.AbstractEditingContextRule.<init>(AbstractEditingContextRule.java:98)
    [junit] at com.wounit.rules.TemporaryEditingContext.<init>(TemporaryEditingContext.java:78)
    [junit] at net.starhealthcare.sffoundation.model.SFGoalTest.<init>(SFGoalTest.java:15)

I don't think that is quite the same problem—I'm not having an issue with finding any models.  Is your model in a different framework?  Is that framework on the testing classpath?


-- 
Paul.

http://logicsquad.net/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Bundle loading during unit testing outside Eclipse
      • From: Henrique Prange <email@hidden>
    • Re: Bundle loading during unit testing outside Eclipse
      • From: Chuck Hill <email@hidden>
    • Re: Bundle loading during unit testing outside Eclipse
      • From: Henrique Prange <email@hidden>
References: 
 >Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Chuck Hill <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Chuck Hill <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Chuck Hill <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Chuck Hill <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Chuck Hill <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Chuck Hill <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Chuck Hill <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Marius Soutier <email@hidden>)
 >Re: Bundle loading during unit testing outside Eclipse (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Bundle loading during unit testing outside Eclipse
  • Next by Date: Re: Bundle loading during unit testing outside Eclipse
  • Previous by thread: Re: Bundle loading during unit testing outside Eclipse
  • Next by thread: Re: Bundle loading during unit testing outside Eclipse
  • Index(es):
    • Date
    • Thread