Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Zarnekow2013-10-02 08:25:20 +0000
committerSebastian Zarnekow2013-10-02 08:40:08 +0000
commit1d7dddcc5577937c388d6552569d96fa42e6f4ed (patch)
tree8edb43db7375b7f800fd38cd839db43f25397e5d /tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test
parentdc8397aade33df9aa25431c5f88fdf54a9410205 (diff)
downloadorg.eclipse.emf-1d7dddcc5577937c388d6552569d96fa42e6f4ed.tar.gz
org.eclipse.emf-1d7dddcc5577937c388d6552569d96fa42e6f4ed.tar.xz
org.eclipse.emf-1d7dddcc5577937c388d6552569d96fa42e6f4ed.zip
Fixed failing test (annotation is a reserved word)
Also: Regenerated with latest Xtend Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Diffstat (limited to 'tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test')
-rw-r--r--tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/interpreter/XcoreInterpreterXbaseIntegrationTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/interpreter/XcoreInterpreterXbaseIntegrationTest.java b/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/interpreter/XcoreInterpreterXbaseIntegrationTest.java
index 7d52434c7..74e5169c0 100644
--- a/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/interpreter/XcoreInterpreterXbaseIntegrationTest.java
+++ b/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/interpreter/XcoreInterpreterXbaseIntegrationTest.java
@@ -52,6 +52,14 @@ public class XcoreInterpreterXbaseIntegrationTest extends AbstractXbaseEvaluatio
{
assertEvaluatesTo(Boolean.TRUE, "typeof(java.lang.^annotation.RetentionPolicy).enum");
}
+
+ @Override
+ @Test
+ public void testSwitchExpression_27() throws Exception {
+ // annotation is a reserved word in Xcore
+ assertEvaluatesTo(null,
+ "{ val Object policy = java.lang.^annotation.RetentionPolicy.SOURCE switch policy { java.lang.^annotation.RetentionPolicy case CLASS: false } }");
+ }
@Override
@Test

Back to the top