Search in sources :

Example 1 with ParserRuleParameters

use of org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters in project xtext-core by eclipse.

the class AbstractParametersParsingTest method testScenario9_keyword_keyword.

@Test
public void testScenario9_keyword_keyword() {
    try {
        final ParserRuleParameters instance = this.getModel("#9 keyword keyword");
        Assert.assertEquals("keyword", instance.getScenario().getSecond());
    } catch (Throwable _e) {
        throw Exceptions.sneakyThrow(_e);
    }
}
Also used : ParserRuleParameters(org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters) Test(org.junit.Test)

Example 2 with ParserRuleParameters

use of org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters in project xtext-core by eclipse.

the class AbstractParametersParsingTest method testScenario10_keyword_keyword.

@Test
public void testScenario10_keyword_keyword() {
    try {
        final ParserRuleParameters instance = this.getModel("#10 keyword keyword");
        Assert.assertEquals("keyword", instance.getScenario().getSecond());
    } catch (Throwable _e) {
        throw Exceptions.sneakyThrow(_e);
    }
}
Also used : ParserRuleParameters(org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters) Test(org.junit.Test)

Example 3 with ParserRuleParameters

use of org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters in project xtext-core by eclipse.

the class AbstractParametersParsingTest method testScenario3_id.

@Test
public void testScenario3_id() {
    try {
        final ParserRuleParameters instance = this.getModel("#3 id");
        Assert.assertEquals("id", instance.getScenario().getFirst());
    } catch (Throwable _e) {
        throw Exceptions.sneakyThrow(_e);
    }
}
Also used : ParserRuleParameters(org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters) Test(org.junit.Test)

Example 4 with ParserRuleParameters

use of org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters in project xtext-core by eclipse.

the class AbstractParametersParsingTest method testScenario9_id.

@Test
public void testScenario9_id() {
    try {
        final ParserRuleParameters instance = this.getModel("#9 id");
        Assert.assertEquals("id", instance.getScenario().getFirst());
    } catch (Throwable _e) {
        throw Exceptions.sneakyThrow(_e);
    }
}
Also used : ParserRuleParameters(org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters) Test(org.junit.Test)

Example 5 with ParserRuleParameters

use of org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters in project xtext-core by eclipse.

the class AbstractParametersParsingTest method testScenario1_first.

@Test
public void testScenario1_first() {
    try {
        final ParserRuleParameters instance = this.getModel("#1 first");
        Assert.assertEquals("first", instance.getScenario().getFirst());
    } catch (Throwable _e) {
        throw Exceptions.sneakyThrow(_e);
    }
}
Also used : ParserRuleParameters(org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters) Test(org.junit.Test)

Aggregations

ParserRuleParameters (org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters)28 Test (org.junit.Test)24 EPackage (org.eclipse.emf.ecore.EPackage)4 Action (org.eclipse.xtext.Action)4 Parameter (org.eclipse.xtext.Parameter)4 ParserRule (org.eclipse.xtext.ParserRule)4 Scenario (org.eclipse.xtext.parser.parameters.parametersTestLanguage.Scenario)4