Package org.jetbrains.plugins.cucumber.java.inspections

Source Code of org.jetbrains.plugins.cucumber.java.inspections.GherkinBrokenTableInspectionTest

package org.jetbrains.plugins.cucumber.java.inspections;

import org.jetbrains.plugins.cucumber.inspections.GherkinBrokenTableInspection;
import org.jetbrains.plugins.cucumber.java.CucumberJavaCodeInsightTestCase;
import org.jetbrains.plugins.cucumber.java.CucumberJavaTestUtil;
import org.jetbrains.plugins.cucumber.steps.CucumberStepsIndex;

/**
* User: Andrey.Vokin
* Date: 10/29/13
*/
public class GherkinBrokenTableInspectionTest extends CucumberJavaCodeInsightTestCase {
  public void testBrokenTable() {
    doTest();
  }

  protected void doTest() {
    CucumberStepsIndex.getInstance(getProject()).reset();
    myFixture.enableInspections(new GherkinBrokenTableInspection());
    myFixture.copyDirectoryToProject(getTestName(true), "");
    myFixture.configureByFile(getTestName(true) + "/test.feature");
    myFixture.testHighlighting(true, true, true);
  }

  @Override
  protected String getBasePath() {
    return CucumberJavaTestUtil.RELATED_TEST_DATA_PATH + "inspections";
  }

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    myFixture.allowTreeAccessForAllFiles();
  }

  @Override
  protected boolean isWriteActionRequired() {
    return false;
  }
}
TOP

Related Classes of org.jetbrains.plugins.cucumber.java.inspections.GherkinBrokenTableInspectionTest

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.