Re: WOUnit & adaptorValueType exception
Re: WOUnit & adaptorValueType exception
- Subject: Re: WOUnit & adaptorValueType exception
- From: Samuel Pelletier <email@hidden>
- Date: Tue, 12 Nov 2013 09:35:38 -0500
Hi,
I have this problem too and after many hours searching for a pattern, I figured out that JUnit runner does not respect the class path order when source are in the workspace. If the workspace contains source for referenced frameworks, their loading orders are modified during the test launch.
I have a workspace without Wonder source for my development with tests.
Samuel
Le 2013-11-10 à 15:36, The Larsons <email@hidden> a écrit :
> This just cropped up after I made a number of changes. I can’t remember what I did because I thought I was just cleaning stuff up, but apparently I broke my tests.
>
> java.lang.IllegalStateException: adaptorValueType: unable to load class named 'Prec4Number' for attribute qtyInBin on entity StockCode
>
> The class it is looking for is in a framework that is in the build bath, and everything is fine when the application runs. Only when I run the unit tests does this happen. I have put some debug code in the test to use the class it is looking for, and everything is fine so I know the class is truly in the class path at run time. I’ve tried just making a new test configuration, but that doesn’t help. >:-[
>
> I’m kind of out of places to look. I’ve added ERAttributeExtensions just for the hell of it (though I am not using anything in it yet), but still same problem. Like I said, it runs fine in deployment and development modes, just breaks during testing.
>
> Thanks for any ideas,
> John
> _______________________________________________
> 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
_______________________________________________
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