Search in sources :

Example 6 with ParserRuleParameters

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

the class AbstractParametersParsingTest method testScenario4_id.

@Test
public void testScenario4_id() {
    try {
        final ParserRuleParameters instance = this.getModel("#4 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 7 with ParserRuleParameters

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

the class AbstractParametersParsingTest method testScenario3_keyword.

@Test
public void testScenario3_keyword() {
    try {
        final ParserRuleParameters instance = this.getModel("#3 keyword");
        Assert.assertEquals("keyword", 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 8 with ParserRuleParameters

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

the class AbstractParametersParsingTest method testScenario7_id.

@Test
public void testScenario7_id() {
    try {
        final ParserRuleParameters instance = this.getModel("#7 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 9 with ParserRuleParameters

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

the class AbstractParametersParsingTest method testScenario10_id.

@Test
public void testScenario10_id() {
    try {
        final ParserRuleParameters instance = this.getModel("#10 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 10 with ParserRuleParameters

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

the class AbstractParametersParsingTest method testScenario9_id_keyword.

@Test
public void testScenario9_id_keyword() {
    try {
        final ParserRuleParameters instance = this.getModel("#9 id keyword");
        Assert.assertEquals("id", instance.getScenario().getSecond());
    } 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