MissingResourceException in a unit test with EMF commands [message #1638662] |
Fri, 27 February 2015 03:21  |
Eclipse User |
|
|
|
Hi all,
I get a MissingResourceException when I run a JUnit test on code that creates a CreateChildCommand. The stack trace says:
java.util.MissingResourceException: The string resource '_UI_XYZ_abc_feature' could not be located
at org.eclipse.emf.common.util.DelegatingResourceLocator.delegatedGetString(DelegatingResourceLocator.java:480)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:385)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:359)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.getFeatureText(ItemProviderAdapter.java:1965)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.getCreateChildText(ItemProviderAdapter.java:1775)
at org.eclipse.emf.edit.command.CreateChildCommand.<init>(CreateChildCommand.java:214)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.createCreateChildCommand(ItemProviderAdapter.java:1310)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.createCreateChildCommand(ItemProviderAdapter.java:1294)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.createCommand(ItemProviderAdapter.java:1089)
at org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.createCommand(AdapterFactoryEditingDomain.java:462)
at org.eclipse.emf.edit.command.CreateChildCommand.create(CreateChildCommand.java:60)
Is there a way to make the resource available in a unit test environment?
I have seen a few discussions on this type of exception in this forum, but I could not find a solution that matches my case.
Thanks,
Uwe
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25250 seconds