|ContentAssist testing with different models [message #556954]
||Fri, 03 September 2010 06:41
| Benjamin Schwertfeger
Registered: July 2009
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?
Powered by FUDForum
. Page generated in 0.01895 seconds