Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XtextResourceSetProvider problems in junit(XtextResourceSetProvider problems in junit)
icon5.gif  XtextResourceSetProvider problems in junit [message #1265748] Thu, 06 March 2014 14:00 Go to next message
Arshad Adavani is currently offline Arshad AdavaniFriend
Messages: 163
Registered: July 2013
Location: Bangalore
Senior Member
Hi all,
I have injected XtextResourceSetProvider in my project.

Something like:
	private XtextResourceSetProvider provider;

I am using this to get the resourceset. When I run my application it gives me the right result.

But when I call a method in this class in my junit it gives me an exception,
something like: Guice configuration errors:

1) No implementation for org.eclipse.xtext.ui.resource.IStorage2UriMapperJdtExtensions was bound.
  while locating org.eclipse.xtext.ui.resource.IStorage2UriMapperJdtExtensions
    for field at org.eclipse.xtext.ui.resource.XtextResourceSetProvider.storage2UriMapper(Unknown Source)
  while locating org.eclipse.xtext.ui.resource.XtextResourceSetProvider
    for field at Source)
  while locating

1 error
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(
	at org.junit.runners.ParentRunner.runLeaf(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.ParentRunner$
	at org.junit.runners.ParentRunner$1.schedule(
	at org.junit.runners.ParentRunner.runChildren(
	at org.junit.runners.ParentRunner.access$000(
	at org.junit.runners.ParentRunner$2.evaluate(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

Any suggestions?

Re: XtextResourceSetProvider problems in junit [message #1265886 is a reply to message #1265748] Thu, 06 March 2014 17:45 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13640
Registered: July 2009
Senior Member

which injector provider do you use? the normal or the ui one?

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Null-Pointer-Exception in EMFGeneratorFragment
Next Topic:How to dynamically create instance without "dangling reference"?
Goto Forum:

Current Time: Mon Oct 26 20:05:36 GMT 2020

Powered by FUDForum. Page generated in 0.02475 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top