Test with JUnit4 in an EMF project [message #479249] |
Mon, 10 August 2009 12:48 |
Eclipse User |
|
|
|
Originally posted by: aurelien.pupier.esial.net
Hi,
I post in the two newsgroup because I hope that both can bring me the solution.
I tried to test some creation of EObject.
But in my JUnit test, the XXXFactory.eINSTANCE return the generated instance although the extended factory that I use and declared in another plugin via o.e.emf.ecore.factory_override.
How can I set JUnit test aware of this?
I already try with adding the plugin with extended factory User entries classpath of the JUnit test launch configuration but with no change.
Thanks for any hints.
Aurelien Pupier
|
|
|
|
Re: Test with JUnit4 in an EMF project [message #479280 is a reply to message #479272] |
Mon, 10 August 2009 14:01 |
Eclipse User |
|
|
|
Originally posted by: aurelien.pupier.esial.net
thanks for your reply.
I will test it via an Eclipse application ;)
Ed Merks a écrit :
> Aurelien,
>
> You need to run as an Eclipse/OSGi application for plugin registrations
> to be taken into account. Running as an ordinary Java application won't
> do the trick, at least not until this is supported:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=271253
>
>
> Aurelien Pupier wrote:
>> Hi,
>>
>> I post in the two newsgroup because I hope that both can bring me the
>> solution.
>>
>> I tried to test some creation of EObject.
>> But in my JUnit test, the XXXFactory.eINSTANCE return the generated
>> instance although the extended factory that I use and declared in
>> another plugin via o.e.emf.ecore.factory_override.
>>
>> How can I set JUnit test aware of this?
>>
>> I already try with adding the plugin with extended factory User
>> entries classpath of the JUnit test launch configuration but with no
>> change.
>>
>>
>> Thanks for any hints.
>>
>> Aurelien Pupier
|
|
|
Powered by
FUDForum. Page generated in 0.03182 seconds