[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tptp] Re: Test with JUnit4 in an EMF project

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