mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[xtext][validation] Linking issues are not syntax errors
This commit is contained in:
parent
80bf4bc4ec
commit
ce05a82891
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ public class ResourceValidatorImplTest extends AbstractXtextTests {
|
|||
XtextResource resource = getResourceAndExpect(new StringInputStream("type foo extends Bar"), 1);
|
||||
List<Issue> list = getValidator().validate(resource, CheckMode.NORMAL_AND_FAST, null);
|
||||
assertEquals(1,list.size());
|
||||
assertTrue(list.get(0).isSyntaxError());
|
||||
assertTrue(!list.get(0).isSyntaxError());
|
||||
assertEquals(org.eclipse.xtext.diagnostics.Diagnostic.LINKING_DIAGNOSTIC, list.get(0).getCode());
|
||||
}
|
||||
|
||||
@Test public void testSemanticError() throws Exception {
|
||||
|
|
Loading…
Reference in a new issue