Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Test cross-references
Test cross-references [message #638115] Wed, 10 November 2010 00:20 Go to next message
Dénes Harmath is currently offline Dénes Harmath
Messages: 157
Registered: July 2009
Senior Member
Hi all,

in the unit tests for my grammar, I want to check whether cross-references work. How can I do that? I call

resource = getResourceFromString(model);
resource.getResourceServiceProvider().getResourceValidator() .validate(resource, CheckMode.ALL, new CancelIndicator.NullImpl());

but the returned list of issues doesn't contain any errors about broken cross-references. What am I doing wrong?

Thanks in advance,
thSoft
Re: Test cross-references [message #638119 is a reply to message #638115] Wed, 10 November 2010 01:17 Go to previous message
Dénes Harmath is currently offline Dénes Harmath
Messages: 157
Registered: July 2009
Senior Member
Sorry for the misinformation, even AbstractXtextTests#getResourceFromString() works correctly, my implementation was wrong. I checked the console and all cross-reference resolutions failed silently because my custom GlobalScopeProvider relied on my custom ImportUriResolver which wasn't bound in the runtime module, just in the UI.
Previous Topic:LabelProvider in the AbstractDeclarativeSemanticModelTransformer
Next Topic:Cannot get GettingStarted to work :(
Goto Forum:
  


Current Time: Sun Oct 26 03:55:29 GMT 2014

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

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