-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Dietrich <[email protected]>
- Loading branch information
Showing
19 changed files
with
604 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: org.xtext.example.mydsl.tests | ||
Bundle-Vendor: My Company | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-SymbolicName: org.xtext.example.mydsl.tests; singleton:=true | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: org.xtext.example.mydsl, | ||
org.xtext.example.mydsl.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.ui.workbench;resolution:=optional, | ||
org.objectweb.asm;bundle-version="[9.0.0,10.0.0)";resolution:=optional, | ||
org.eclipse.xtext.junit4;bundle-version="2.24.0", | ||
org.eclipse.xtext.xbase.lib;bundle-version="2.24.0" | ||
Import-Package: org.apache.log4j, | ||
org.junit;version="4.5.0", | ||
org.junit.runner;version="4.5.0", | ||
org.junit.runner.manipulation;version="4.5.0", | ||
org.junit.runner.notification;version="4.5.0", | ||
org.junit.runners;version="4.5.0", | ||
org.junit.runners.model;version="4.5.0", | ||
org.hamcrest.core | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 | ||
Export-Package: org.xtext.example.mydsl | ||
Automatic-Module-Name: org.xtext.example.mydsl.tests | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: org.xtext.example.mydsl.tests | ||
Bundle-Vendor: My Company | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-SymbolicName: org.xtext.example.mydsl.tests; singleton:=true | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: org.xtext.example.mydsl, | ||
org.xtext.example.mydsl.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.ui.workbench;resolution:=optional, | ||
org.objectweb.asm;bundle-version="[9.0.0,10.0.0)";resolution:=optional, | ||
org.eclipse.xtext.junit4;bundle-version="2.24.0", | ||
org.eclipse.xtext.xbase.lib;bundle-version="2.24.0", | ||
org.eclipse.xtext.xbase.testing, | ||
org.eclipse.xtext.testing | ||
Import-Package: org.apache.log4j, | ||
org.junit;version="4.5.0", | ||
org.junit.runner;version="4.5.0", | ||
org.junit.runner.manipulation;version="4.5.0", | ||
org.junit.runner.notification;version="4.5.0", | ||
org.junit.runners;version="4.5.0", | ||
org.junit.runners.model;version="4.5.0", | ||
org.hamcrest.core | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 | ||
Export-Package: org.xtext.example.mydsl.tests;x-internal=true | ||
Automatic-Module-Name: org.xtext.example.mydsl.tests |
30 changes: 30 additions & 0 deletions
30
org.xtext.example.mydsl.tests/src/org/xtext/example/mydsl/tests/MyDslParsingTest.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* generated by Xtext 2.31.0 | ||
*/ | ||
package org.xtext.example.mydsl.tests | ||
|
||
import com.google.inject.Inject | ||
import org.eclipse.xtext.testing.InjectWith | ||
import org.eclipse.xtext.testing.XtextRunner | ||
import org.eclipse.xtext.testing.util.ParseHelper | ||
import org.junit.Assert | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
import org.xtext.example.mydsl.myDsl.Model | ||
|
||
@RunWith(XtextRunner) | ||
@InjectWith(MyDslInjectorProvider) | ||
class MyDslParsingTest { | ||
@Inject | ||
ParseHelper<Model> parseHelper | ||
|
||
@Test | ||
def void loadModel() { | ||
val result = parseHelper.parse(''' | ||
Hello Xtext! | ||
''') | ||
Assert.assertNotNull(result) | ||
val errors = result.eResource.errors | ||
Assert.assertTrue('''Unexpected errors: «errors.join(", ")»''', errors.isEmpty) | ||
} | ||
} |
39 changes: 0 additions & 39 deletions
39
org.xtext.example.mydsl.tests/src/org/xtext/example/mydsl/tests/SampleTest.xtend
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: org.xtext.example.mydsl.ui | ||
Bundle-Vendor: My Company | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-SymbolicName: org.xtext.example.mydsl.ui; singleton:=true | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: org.xtext.example.mydsl;visibility:=reexport, | ||
org.eclipse.xtext.ui, | ||
org.eclipse.ui.editors;bundle-version="3.5.0", | ||
org.eclipse.ui.ide;bundle-version="3.5.0", | ||
org.eclipse.xtext.ui.shared, | ||
org.eclipse.ui, | ||
org.eclipse.xtext.builder, | ||
org.antlr.runtime, | ||
org.eclipse.xtext.ui.codetemplates.ui, | ||
org.eclipse.compare, | ||
org.eclipse.xtext.xbase.lib | ||
Import-Package: org.apache.log4j, | ||
org.eclipse.xtext.xbase.lib | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 | ||
Export-Package: org.xtext.example.mydsl.ui.quickfix, | ||
org.xtext.example.mydsl.ui.contentassist, | ||
org.xtext.example.mydsl.ui.contentassist.antlr, | ||
org.xtext.example.mydsl.ui.internal, | ||
org.xtext.example.mydsl.ui.contentassist.antlr.internal | ||
Bundle-Activator: org.xtext.example.mydsl.ui.internal.MyDslActivator | ||
Automatic-Module-Name: org.xtext.example.mydsl.ui | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: org.xtext.example.mydsl.ui | ||
Bundle-Vendor: My Company | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-SymbolicName: org.xtext.example.mydsl.ui; singleton:=true | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: org.xtext.example.mydsl;visibility:=reexport, | ||
org.eclipse.xtext.ui, | ||
org.eclipse.ui.editors;bundle-version="3.5.0", | ||
org.eclipse.ui.ide;bundle-version="3.5.0", | ||
org.eclipse.xtext.ui.shared, | ||
org.eclipse.ui, | ||
org.eclipse.xtext.builder, | ||
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)", | ||
org.eclipse.xtext.ui.codetemplates.ui, | ||
org.eclipse.compare, | ||
org.eclipse.xtext.xbase.lib | ||
Import-Package: org.apache.log4j, | ||
org.eclipse.xtext.xbase.lib | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 | ||
Export-Package: org.xtext.example.mydsl.ui.quickfix, | ||
org.xtext.example.mydsl.ui.contentassist, | ||
org.xtext.example.mydsl.ui.contentassist.antlr, | ||
org.xtext.example.mydsl.ui.internal, | ||
org.xtext.example.mydsl.ui.contentassist.antlr.internal, | ||
org.xtext.example.mydsl.ide.contentassist.antlr, | ||
org.xtext.example.mydsl.ide.contentassist.antlr.internal | ||
Bundle-Activator: org.xtext.example.mydsl.ui.internal.MyDslActivator | ||
Automatic-Module-Name: org.xtext.example.mydsl.ui |
Oops, something went wrong.