/***************************************************************************** | |
* Copyright (c) 2016 CEA LIST. | |
* | |
* 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 | |
* | |
* Contributors: | |
* Arnault Lapitre (CEA LIST) arnault.lapitre@cea.fr | |
* - Initial API and implementation | |
*****************************************************************************/ | |
package org.eclipse.efm.formalml.xtext.tests | |
import com.google.inject.Inject | |
import org.eclipse.efm.ecore.formalml.specification.XliaModel | |
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(FormalMLInjectorProvider) | |
class FormalMLParsingTest{ | |
@Inject | |
ParseHelper<XliaModel> parseHelper | |
@Test | |
def void loadModel() { | |
val result = parseHelper.parse(''' | |
Hello Xtext! | |
''') | |
Assert.assertNotNull(result) | |
} | |
} |