make AbstractPartialParsrTest more strict

It should also test if node.getGrammarElement() is correct

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
This commit is contained in:
Moritz Eysholdt 2016-07-26 09:58:38 +02:00
parent c216f1aa1d
commit b78ea72ffe

View file

@ -54,6 +54,7 @@ public abstract class AbstractPartialParserTest extends AbstractXtextTests {
assertTrue(secondIter.hasNext());
INode firstNext = firstIter.next();
INode secondNext = secondIter.next();
assertEquals(firstNext.getGrammarElement(), secondNext.getGrammarElement());
assertEquals(firstNext.getClass(), secondNext.getClass());
assertEquals(firstNext.getTotalOffset(), secondNext.getTotalOffset());
assertEquals(firstNext.getTotalLength(), secondNext.getTotalLength());