Package com.jetbrains.lang.dart.refactoring.extract

Source Code of com.jetbrains.lang.dart.refactoring.extract.DartExtractMethodTest

package com.jetbrains.lang.dart.refactoring.extract;

import com.intellij.openapi.util.io.FileUtil;
import com.jetbrains.lang.dart.DartCodeInsightFixtureTestCase;
import com.jetbrains.lang.dart.ide.refactoring.extract.DartExtractMethodHandler;

public class DartExtractMethodTest extends DartCodeInsightFixtureTestCase {
  @Override
  protected String getBasePath() {
    return FileUtil.toSystemDependentName("/refactoring/extractMethod/");
  }

  @Override
  protected void tearDown() throws Exception {
    super.tearDown();
  }

  private void doTest() throws Throwable {
    myFixture.configureByFile(getTestName(true) + ".dart");
    doTestImpl();
  }

  private void doTestImpl() {
    final DartExtractMethodHandler extractMethodHandler = new DartExtractMethodHandler();
    //noinspection NullableProblems
    extractMethodHandler.invoke(myFixture.getProject(), myFixture.getEditor(), myFixture.getFile(), null);
    myFixture.checkResultByFile(getTestName(true) + "_expected.dart");
  }

  public void testExtract1() throws Throwable {
    doTest();
  }

  public void testExtract2() throws Throwable {
    doTest();
  }

  public void testExtract3() throws Throwable {
    doTest();
  }

  public void testExtract4() throws Throwable {
    doTest();
  }

  public void testExtract5() throws Throwable {
    doTest();
  }

  public void testExtractWEB2333() throws Throwable {
    doTest();
  }

  public void testExtractWEB2334() throws Throwable {
    doTest();
  }

  public void testExtractWEB6459() throws Throwable {
    doTest();
  }

  public void testExtractWEB6707() throws Throwable {
    doTest();
  }

  public void testExtractWI14240() throws Throwable {
    doTest();
  }

  public void testExtractWI14242() throws Throwable {
    doTest();
  }
}
TOP

Related Classes of com.jetbrains.lang.dart.refactoring.extract.DartExtractMethodTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.