Skip to content

Commit

Permalink
adapted XsemanticsGeneratorRunnerTests
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Nov 28, 2023
1 parent d1da1ea commit 1e55457
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import org.eclipse.xsemantics.dsl.generator.XsemanticsOutputConfigurationProvider;
import org.eclipse.xsemantics.dsl.tests.XsemanticsAbstractTests;
import org.eclipse.xsemantics.dsl.tests.XsemanticsInjectorProvider;

import java.io.BufferedInputStream;
import java.io.File;
Expand All @@ -22,28 +23,29 @@
import java.util.List;

import org.eclipse.xtext.resource.XtextResourceSet;
import org.eclipse.xtext.testing.InjectWith;
import org.eclipse.xtext.testing.XtextRunner;
import org.eclipse.xtext.validation.Issue;
import org.junit.Test;
import org.junit.runner.RunWith;

import com.google.inject.Inject;

@InjectWith(XsemanticsInjectorProvider.class)
@RunWith(XtextRunner.class)
public class XsemanticsGeneratorRunnerTests extends XsemanticsAbstractTests {
protected static final String VALIDATION_SUBDIR = "validation/";

GeneratorForTests generator;

XtextResourceSet resourceSet;
@Inject
private GeneratorForTests generator;

@Inject
private XtextResourceSet resourceSet;

// static {
// System.setProperty("line.separator", "\n");
// }

@Override
public void setUp() throws Exception {
super.setUp();
generator = get(GeneratorForTests.class);
generator.setOutputPath(null);
resourceSet = get(XtextResourceSet.class);
}

protected void setGeneratorOutputPath(String outputPath) {
generator.setOutputPath(outputPath);
}
Expand Down

0 comments on commit 1e55457

Please sign in to comment.