Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Unit test runner: Incompatible types
Unit test runner: Incompatible types [message #1021771] Wed, 20 March 2013 16:41 Go to next message
Mr Manner is currently offline Mr MannerFriend
Messages: 26
Registered: January 2013
Junior Member
I get a strange error in my xtend test files. At the point of the @RunWith

@InjectWith(typeof(JsonInjectorProvider))
@RunWith(typeof(XtextRunner))


I get the following error message:

Incompatible types. Expected java.lang.Class<? extends org.junit.runner.Runner>
   but was java.lang.Class<org.eclipse.xtext.junit4.XtextRunner>


This started to happen after I used the xtext parser as described
here inside of my eclipse plugin.
Re: Unit test runner: Incompatible types [message #1021800 is a reply to message #1021771] Wed, 20 March 2013 17:58 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

which Xtext Version do you use?

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Unit test runner: Incompatible types [message #1022153 is a reply to message #1021800] Thu, 21 March 2013 11:15 Go to previous messageGo to next message
Mr Manner is currently offline Mr MannerFriend
Messages: 26
Registered: January 2013
Junior Member
version: 2.3.1
Re: Unit test runner: Incompatible types [message #1022163 is a reply to message #1022153] Thu, 21 March 2013 11:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi can you share a complete example as zip file

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Unit test runner: Incompatible types [message #1022174 is a reply to message #1022163] Thu, 21 March 2013 12:13 Go to previous messageGo to next message
Mr Manner is currently offline Mr MannerFriend
Messages: 26
Registered: January 2013
Junior Member
I can't give you a copy of the project I am working on (corporation stuff).
Re: Unit test runner: Incompatible types [message #1022187 is a reply to message #1022174] Thu, 21 March 2013 12:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Then try to reproduce it with a hello world project

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Unit test runner: Incompatible types [message #1022229 is a reply to message #1022187] Thu, 21 March 2013 14:07 Go to previous messageGo to next message
Mr Manner is currently offline Mr MannerFriend
Messages: 26
Registered: January 2013
Junior Member
I could not reproduce the error in the greetings example. Is there an other way of investigating this error that I can try?
Re: Unit test runner: Incompatible types [message #1022230 is a reply to message #1022229] Thu, 21 March 2013 14:08 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi It max be a class path, class path order problem

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Editor Plugin fails to start
Next Topic:How can a new character be added to xtext edito?
Goto Forum:
  


Current Time: Fri Mar 29 00:17:27 GMT 2024

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

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

Back to the top