Re: [Wonder-disc] WOUnit and LocalDate problem
Re: [Wonder-disc] WOUnit and LocalDate problem
- Subject: Re: [Wonder-disc] WOUnit and LocalDate problem
- From: Henrique Prange <email@hidden>
- Date: Wed, 16 Nov 2011 14:38:28 -0200
Hi Golnaz,
Let's keep the discussion in the list. It can help others in the future.
On 15/11/2011, at 12:58, Golnaz Sepehrband wrote:
> Hi Henrique,
>
> Thanks for that.
> Unfortunately, we don't use maven in our project and only using the wounit jar that we now upgraded to wounit 1.2.
> I just, out of curiosity, forked the wounit source code and noticed that ERAttributeExtension is not listed as an dependency in pom.xml and guessed that might be the reason of the exception I get when I try to run a test that has EO with localDate attribute. These EOs instantiate and load perfectly fine other places in the application, it's just when trying to run test cases it fails with this exception:
>
> java.lang.IllegalStateException: adaptorValueType: unable to load class named 'LocalDate' for attribute <attribute> on entity <entity>
> ...
>
Are you running your tests inside Eclipse or via Ant? In both cases, you have to make sure the ERAttributeExtension framework is present in the *test* classpath and it is loaded before the JavaEOAccess.framework.
In Eclipse, you can change the classpath order in the Java Build Path -> Order and Export tab of your project's Properties.
> We have ERAttrinuteExtension framework added into our project's build path but it seems it doesn't help the test cases to run successfully, that's why I initially thought maybe ERAttributeExtension should be defined as an dependency in wounit project as well.
>
Just to make things clear. The problem you have reported is neither related to the build tool (Ant or Maven) nor to the absence of the ERAttributeExtension in the WOUnit's pom.xml.
Cheers,
Henrique
_______________________________________________
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