Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » ContentAssist testing with different models(The content assist test case supports multiple injectors)
ContentAssist testing with different models [message #556954] Fri, 03 September 2010 06:41
Benjamin Schwertfeger is currently offline Benjamin Schwertfeger
Messages: 43
Registered: July 2009
Member
Hi,
I'm using the AbstractContentAssistProcessorTest class for my content assist tests. In my case I have more than one Xtext model and references from the gui to the data model. If I try to test the gui content assist, I would like to load a resource for the data model and get the entities from there in my proposal.

I can load the Resource by using createInjector from DataModelStandaloneSetup and get the IResourceFactory from there. The default ecore registry doesn't work, because the test case uses always the gui parser while creating the resource from model. If I add the resource to the XtextResourceSet from gui the entities are not found by the scope later.

Should I update the StateBasedContainerManager manually or is there another way to write tests with different Models?

Regards,

Benjamin
Previous Topic:Problem with code generator
Next Topic:Xtext custom validation: different resource and eobject
Goto Forum:
  


Current Time: Sat May 25 12:10:14 EDT 2013

Powered by FUDForum. Page generated in 0.01895 seconds