use of com.intellij.codeInsight.intention.IntentionAction in project intellij-community by JetBrains.
the class PostfixTemplateDescriptionNotFoundInspectionTest method testQuickFix.
public void testQuickFix() {
myFixture.configureByFiles("MyQuickFixTemplate.java");
IntentionAction item = myFixture.findSingleIntention("Create description file description.html");
myFixture.launchAction(item);
VirtualFile path = myFixture.findFileInTempDir("postfixTemplates/MyQuickFixTemplate/description.html");
assertNotNull(path);
assertTrue(path.exists());
}
use of com.intellij.codeInsight.intention.IntentionAction in project intellij-community by JetBrains.
the class RegisterExtensionFixProviderTest method testCreateLocalInspectionMapping.
public void testCreateLocalInspectionMapping() {
myFixture.addClass("package com.intellij.codeInspection; public class LocalInspectionTool {} ");
myFixture.testHighlighting("LocalInspection.java", "plugin.xml");
IntentionAction intention = myFixture.findSingleIntention("Register inspection");
myFixture.launchAction(intention);
myFixture.checkResultByFile("plugin.xml", "localInspection.xml", true);
}
use of com.intellij.codeInsight.intention.IntentionAction in project intellij-community by JetBrains.
the class RegisterExtensionFixProviderTest method testCreateGlobalInspectionMapping.
public void testCreateGlobalInspectionMapping() {
myFixture.addClass("package com.intellij.codeInspection; public class GlobalInspectionTool {} ");
myFixture.testHighlighting("GlobalInspection.java", "plugin.xml");
IntentionAction intention = myFixture.findSingleIntention("Register inspection");
myFixture.launchAction(intention);
myFixture.checkResultByFile("plugin.xml", "globalInspection.xml", true);
}
use of com.intellij.codeInsight.intention.IntentionAction in project intellij-community by JetBrains.
the class RegisterExtensionFixProviderTest method testCreateExtensionPointMappingWithKnownRequiredAttributeAndTag.
public void testCreateExtensionPointMappingWithKnownRequiredAttributeAndTag() {
myFixture.addClass("package com.intellij.lang; public class LanguageExtensionPoint {}");
myFixture.testHighlighting("MyLanguageExtensionPoint.java", "MyLanguageExtensionPointInterface.java", "extensionPointWithKnownRequiredAttributeAndTag.xml");
IntentionAction intention = myFixture.findSingleIntention("Register extension");
myFixture.launchAction(intention);
myFixture.checkResultByFile("extensionPointWithKnownRequiredAttributeAndTag.xml", "extensionPointWithKnownRequiredAttributeAndTag_after.xml", true);
}
use of com.intellij.codeInsight.intention.IntentionAction in project intellij-community by JetBrains.
the class RegisterExtensionFixProviderTest method testCreateExtensionPointMapping.
public void testCreateExtensionPointMapping() {
myFixture.testHighlighting("MyExtensionPoint.java", "extensionPoint.xml", "ExtensionPoint.java");
IntentionAction intention = myFixture.findSingleIntention("Register extension");
myFixture.launchAction(intention);
myFixture.checkResultByFile("extensionPoint.xml", "extensionPoint_after.xml", true);
}
Aggregations