Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How To Unit Test Content Assist In Web Project(Is there an example of how to unit test content assist in a web project?)
How To Unit Test Content Assist In Web Project [message #1771060] Mon, 21 August 2017 14:36 Go to next message
Greg Lusk is currently offline Greg LuskFriend
Messages: 20
Registered: February 2017
Location: USA
Junior Member
I have come across examples of how to unit test content assist in Eclipse editor projects, but not in standalone web projects. Can anyone provide a code example for how to do this?
Re: How To Unit Test Content Assist In Web Project [message #1771062 is a reply to message #1771060] Mon, 21 August 2017 14:45 Go to previous messageGo to next message
Greg Lusk is currently offline Greg LuskFriend
Messages: 20
Registered: February 2017
Location: USA
Junior Member
I might add that we want to test content assist on the server, not from the client, if at all possible.
Re: How To Unit Test Content Assist In Web Project [message #1771441 is a reply to message #1771060] Fri, 25 August 2017 06:17 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 550
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Hi Greg,

you might want to investigate ContentAssistTest for a reference: https://github.com/eclipse/xtext-web/blob/master/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/ContentAssistTest.xtend

Note that its base class is tied to the Statemachine example language and you have to customize this.

HTH,
~Karsten
Re: How To Unit Test Content Assist In Web Project [message #1771814 is a reply to message #1771441] Wed, 30 August 2017 20:00 Go to previous message
Greg Lusk is currently offline Greg LuskFriend
Messages: 20
Registered: February 2017
Location: USA
Junior Member
Thank you, Karsten. I had looked at that code before, but will take a closer look.
Previous Topic:No GenPackage for NsURI http://www.eclipse.org/emf/2002/Ecore
Next Topic:Comments in Xtext
Goto Forum:
  


Current Time: Wed Nov 22 18:48:51 GMT 2017

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

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