Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added runtime test module for Information model
Signed-off-by: shiv12095 <shiv12095@iiitd.ac.in>
- Loading branch information
Showing
5 changed files
with
87 additions
and
32 deletions.
There are no files selected for viewing
63 changes: 32 additions & 31 deletions
63
bundles/org.eclipse.vorto.editor.infomodel.tests/META-INF/MANIFEST.MF
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,31 +1,32 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Vorto Information Model Editor Tests (Incubation) | ||
Bundle-Vendor: Eclipse.org/Vorto | ||
Bundle-Version: 0.4.0.qualifier | ||
Bundle-SymbolicName: org.eclipse.vorto.editor.infomodel.tests;singleton:=true | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: org.eclipse.vorto.editor.infomodel, | ||
org.eclipse.vorto.editor.infomodel.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.xtext.junit4, | ||
org.eclipse.ui.workbench;resolution:=optional, | ||
org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional, | ||
org.eclipse.xtext, | ||
org.eclipse.xtext.xbase, | ||
org.eclipse.xtext.xbase.lib, | ||
org.eclipse.xtext.ui, | ||
org.eclipse.vorto.core | ||
Import-Package: org.apache.log4j, | ||
org.eclipse.xtext.formatting, | ||
org.eclipse.xtext.junit.util;resolution:=optional, | ||
org.hamcrest.core, | ||
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" | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 | ||
Bundle-ClassPath: resources/,. | ||
Export-Package: org.eclipse.vorto.editor.infomodel | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Vorto Information Model Editor Tests (Incubation) | ||
Bundle-Vendor: Eclipse.org/Vorto | ||
Bundle-Version: 0.4.0.qualifier | ||
Bundle-SymbolicName: org.eclipse.vorto.editor.infomodel.tests;singleton:=true | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: org.eclipse.vorto.editor.infomodel, | ||
org.eclipse.vorto.editor.infomodel.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.xtext.junit4, | ||
org.eclipse.ui.workbench;resolution:=optional, | ||
org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional, | ||
org.eclipse.xtext, | ||
org.eclipse.xtext.xbase, | ||
org.eclipse.xtext.xbase.lib, | ||
org.eclipse.xtext.ui, | ||
org.eclipse.vorto.core | ||
Import-Package: org.apache.log4j, | ||
org.eclipse.xtext.formatting, | ||
org.eclipse.xtext.junit.util;resolution:=optional, | ||
org.hamcrest.core, | ||
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" | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 | ||
Bundle-ClassPath: resources/,. | ||
Export-Package: org.eclipse.vorto.editor.infomodel.tests | ||
|
45 changes: 45 additions & 0 deletions
45
...odel.tests/src/org/eclipse/vorto/editor/infomodel/tests/InformationModelParsingTest.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,45 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2014 Bosch Software Innovations GmbH and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Eclipse Distribution License v1.0 which accompany this distribution. | ||
* | ||
* The Eclipse Public License is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* The Eclipse Distribution License is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
* | ||
* Contributors: | ||
* Bosch Software Innovations GmbH - Please refer to git log | ||
* | ||
*******************************************************************************/ | ||
/* | ||
* generated by Xtext | ||
*/ | ||
package org.eclipse.vorto.editor.infomodel.tests | ||
|
||
import com.google.inject.Inject | ||
import org.eclipse.vorto.core.api.model.informationmodel.InformationModel | ||
import org.eclipse.xtext.junit4.InjectWith | ||
import org.eclipse.xtext.junit4.XtextRunner | ||
import org.eclipse.xtext.junit4.util.ParseHelper | ||
import org.junit.Assert | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(XtextRunner) | ||
@InjectWith(InformationModelInjectorProvider) | ||
class InformationModelParsingTest{ | ||
|
||
@Inject | ||
ParseHelper<InformationModel> parseHelper; | ||
|
||
@Test | ||
def void loadModel() { | ||
val result = parseHelper.parse(''' | ||
Hello Xtext! | ||
''') | ||
Assert.assertNotNull(result) | ||
} | ||
|
||
} |
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
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
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