| /** |
| * Copyright (c) 2017 CEA. |
| * 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: |
| * CEA - initial API and implementation and/or initial documentation |
| */ |
| /* |
| * generated by Xtext 2.9.1 |
| */ |
| package org.eclipse.sensinact.studio.language.tests |
| |
| import com.google.inject.Inject |
| import org.eclipse.sensinact.studio.language.sensinact.Sensinact |
| 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(SensinactInjectorProvider) |
| class SensinactParsingTest{ |
| |
| @Inject |
| ParseHelper<Sensinact> parseHelper; |
| |
| @Test |
| def void loadModel() { |
| val result = parseHelper.parse(''' |
| Hello Xtext! |
| ''') |
| Assert.assertNotNull(result) |
| } |
| |
| } |