mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[idea] fix IdeaGrammarSerializerTest
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
This commit is contained in:
parent
2d80c45669
commit
1ff3694546
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ import java.io.ByteArrayOutputStream;
|
|||
import org.eclipse.xtext.XtextStandaloneSetup;
|
||||
import org.eclipse.xtext.junit4.AbstractXtextTests;
|
||||
import org.eclipse.xtext.resource.XtextResource;
|
||||
import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
|
@ -28,6 +29,7 @@ public class GrammarSerializerTest extends AbstractXtextTests {
|
|||
@Test public void testSerializeGrammar() throws Exception {
|
||||
String string = readFileIntoString("org/eclipse/xtext/parser/unorderedGroups/UnorderedGroupsTestLanguage.xtext");
|
||||
XtextResource resource = getResourceFromString(string);
|
||||
resource.getResourceSet().getLoadOptions().put(ResourceDescriptionsProvider.LIVE_SCOPE, Boolean.TRUE);
|
||||
resource.save(new ByteArrayOutputStream(), null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue