/** * Copyright (c) 2013 committers of YAKINDU 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 * Contributors: * committers of YAKINDU - initial API and implementation * */ package org.yakindu.sct.refactoring.refactor.impl; import static org.yakindu.sct.refactoring.test.models.RefactoringTestModels.INLINE_SUBDIAGRAM; import org.eclipse.gmf.runtime.notation.View; import org.eclipse.xtext.junit4.InjectWith; import org.eclipse.xtext.junit4.XtextRunner; import org.junit.Test; import org.junit.runner.RunWith; import org.yakindu.sct.refactoring.refactor.AbstractRefactoring; import org.yakindu.sct.refactoring.refactor.ViewBasedRefactoringTest; import org.yakindu.sct.test.models.TestModelInjectorProvider; @RunWith(XtextRunner.class) @InjectWith(TestModelInjectorProvider.class) public class InlineSubdiagramRefactoringTest extends ViewBasedRefactoringTest{ @Test public void testTwoEntryPoints() { testRefactoring( INLINE_SUBDIAGRAM + "before_twoEntryPoints.sct", INLINE_SUBDIAGRAM + "after_twoEntryPoints.sct", "Composite"); } @Test public void testTwoComposites() { testRefactoring( INLINE_SUBDIAGRAM + "before_twoComposites.sct", INLINE_SUBDIAGRAM + "after_twoComposites.sct", "Composite_Composite_A"); } @Override protected AbstractRefactoring<View> getRefactoring() { return new InlineSubdiagramRefactoring(); } }