use of org.jetbrains.plugins.groovy.codeInspection.secondUnsafeCall.SecondUnsafeCallInspection in project intellij-community by JetBrains.
the class SecondUnsafeCallTest method doTest.
public void doTest() throws Exception {
final List<String> data = TestUtils.readInput(getTestDataPath() + "/" + getTestName(true) + ".test");
myFixture.configureByText("a.groovy", data.get(0));
myFixture.enableInspections(new SecondUnsafeCallInspection());
final IntentionAction action = myFixture.findSingleIntention("Second unsafe call");
myFixture.launchAction(action);
myFixture.checkResult(data.get(1));
}
Aggregations