Search in sources :

Example 1 with MigrateAssertToMatcherAssertInspection

use of com.intellij.refactoring.typeMigration.inspections.MigrateAssertToMatcherAssertInspection in project intellij-community by JetBrains.

the class MigrateAssertToMatcherAssertTest method testAll.

public void testAll() {
    myFixture.configureByFile(getTestName(true) + ".java");
    myFixture.enableInspections(new MigrateAssertToMatcherAssertInspection());
    for (IntentionAction wrapper : myFixture.getAllQuickFixes()) {
        if (wrapper instanceof QuickFixWrapper) {
            final LocalQuickFix fix = ((QuickFixWrapper) wrapper).getFix();
            if (fix instanceof MigrateAssertToMatcherAssertInspection.MyQuickFix) {
                myFixture.launchAction(wrapper);
            }
        }
    }
    myFixture.checkResultByFile(getTestName(true) + "_after.java");
}
Also used : MigrateAssertToMatcherAssertInspection(com.intellij.refactoring.typeMigration.inspections.MigrateAssertToMatcherAssertInspection) IntentionAction(com.intellij.codeInsight.intention.IntentionAction) LocalQuickFix(com.intellij.codeInspection.LocalQuickFix) QuickFixWrapper(com.intellij.codeInspection.ex.QuickFixWrapper)

Aggregations

IntentionAction (com.intellij.codeInsight.intention.IntentionAction)1 LocalQuickFix (com.intellij.codeInspection.LocalQuickFix)1 QuickFixWrapper (com.intellij.codeInspection.ex.QuickFixWrapper)1 MigrateAssertToMatcherAssertInspection (com.intellij.refactoring.typeMigration.inspections.MigrateAssertToMatcherAssertInspection)1