diff options
Diffstat (limited to 'tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/scoping/XbaseScopingTest.xtend')
-rw-r--r-- | tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/scoping/XbaseScopingTest.xtend | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/scoping/XbaseScopingTest.xtend b/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/scoping/XbaseScopingTest.xtend index 368741fa1..0c3d95016 100644 --- a/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/scoping/XbaseScopingTest.xtend +++ b/tests/org.eclipse.emf.test.ecore.xcore/src/org/eclipse/emf/test/ecore/xcore/scoping/XbaseScopingTest.xtend @@ -1,44 +1,44 @@ -/**
- * Copyright (c) 2011-2012 Eclipse contributors and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- */
-package org.eclipse.emf.test.ecore.xcore.scoping
-
-import org.junit.runner.RunWith
-import org.eclipse.xtext.junit4.XtextRunner
-import org.eclipse.xtext.junit4.InjectWith
-import org.eclipse.emf.ecore.xcore.XcoreInjectorProvider
-import com.google.inject.Inject
-import org.eclipse.xtext.junit4.util.ParseHelper
-import org.eclipse.emf.ecore.xcore.XPackage
-import org.eclipse.xtext.junit4.validation.ValidationTestHelper
-import org.junit.Test
-
-@RunWith(typeof(XtextRunner))
-@InjectWith(typeof(XcoreInjectorProvider))
-class XbaseScopingTest {
-
- @Inject
- ParseHelper<XPackage> parser
-
- @Inject
- ValidationTestHelper validator
-
- @Test
- def testLinkToThis() {
- val pack = parser.parse('''
- package foo.bar
-
- class X {
- op X foo(X x) {
- return this.foo(x)
- }
- }
- ''')
- validator.assertNoErrors(pack)
- }
-
+/** + * Copyright (c) 2011-2012 Eclipse contributors and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + */ +package org.eclipse.emf.test.ecore.xcore.scoping + +import org.junit.runner.RunWith +import org.eclipse.xtext.junit4.XtextRunner +import org.eclipse.xtext.junit4.InjectWith +import org.eclipse.emf.ecore.xcore.XcoreInjectorProvider +import com.google.inject.Inject +import org.eclipse.xtext.junit4.util.ParseHelper +import org.eclipse.emf.ecore.xcore.XPackage +import org.eclipse.xtext.junit4.validation.ValidationTestHelper +import org.junit.Test + +@RunWith(typeof(XtextRunner)) +@InjectWith(typeof(XcoreInjectorProvider)) +class XbaseScopingTest { + + @Inject + ParseHelper<XPackage> parser + + @Inject + ValidationTestHelper validator + + @Test + def testLinkToThis() { + val pack = parser.parse(''' + package foo.bar + + class X { + op X foo(X x) { + return this.foo(x) + } + } + ''') + validator.assertNoErrors(pack) + } + }
\ No newline at end of file |