Skip to content

Commit

Permalink
Adapted dsl execution test
Browse files Browse the repository at this point in the history
Change-Id: Icc0907205fa08587c8597c0e2bbefeef7a2195d6
  • Loading branch information
LorenzoBettini committed Nov 25, 2016
1 parent 3a466c6 commit 9c868e5
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2013 RCP Vision (http://www.rcp-vision.com) and others.
* Copyright (c) 2016 RCP Vision (http://www.rcp-vision.com) 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
Expand All @@ -15,7 +15,6 @@ import com.google.inject.Guice
import com.google.inject.Inject
import com.google.inject.Module
import org.eclipse.emf.ecore.resource.impl.ResourceImpl
import org.eclipse.emf.parsley.dsl.tests.util.EmfParsleyDslInjectorProviderCustom
import org.eclipse.emf.parsley.examples.library.EXTLibraryFactory
import org.eclipse.emf.parsley.junit4.AbstractEmfParsleyShellBasedTest
import org.eclipse.emf.parsley.viewers.ViewerFactory
Expand All @@ -35,9 +34,9 @@ import org.junit.runner.RunWith

import static extension org.junit.Assert.*

@RunWith(typeof(XtextRunner))
@InjectWith(typeof(EmfParsleyDslInjectorProviderCustom))
class EmfParsleyDslExecutionTests extends AbstractEmfParsleyShellBasedTest {
@RunWith(XtextRunner)
@InjectWith(EmfParsleyDslInjectorProvider)
class EmfParsleyDslExecutionTest extends AbstractEmfParsleyShellBasedTest {

@Rule
@Inject public TemporaryFolder temporaryFolder
Expand All @@ -46,7 +45,7 @@ class EmfParsleyDslExecutionTests extends AbstractEmfParsleyShellBasedTest {

val libraryFactory = EXTLibraryFactory.eINSTANCE

@Test def void testLabelProvider() {
@Test def void testGeneratedLabelProvider() {
val labelProvider = '''
import org.eclipse.emf.parsley.examples.library.Book
import org.eclipse.emf.parsley.examples.library.BookOnTape
Expand Down Expand Up @@ -96,7 +95,7 @@ class EmfParsleyDslExecutionTests extends AbstractEmfParsleyShellBasedTest {
"Title: Foo".assertEquals(labelProvider.getText(libraryFactory.createBook => [title = "Foo"]))
}

@Test def void testContentProvider() {
@Test def void testGeneratedContentProvider() {
val viewerFactory = '''
import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.emf.parsley.examples.library.Book
Expand Down

0 comments on commit 9c868e5

Please sign in to comment.