From 7638e45ab3c48eaa3f05cdfd980d072c33f1a2f6 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Tue, 31 Jan 2012 17:03:54 +0100 Subject: [PATCH] Make it easier to test IPPs MutablyNamedIntentions --- .../testSrc/com/siyeh/ipp/IPPTestCase.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/IPPTestCase.java b/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/IPPTestCase.java index de380229d7e2..1f8c3bf2029b 100644 --- a/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/IPPTestCase.java +++ b/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/IPPTestCase.java @@ -28,8 +28,12 @@ public abstract class IPPTestCase extends LightCodeInsightFixtureTestCase { protected abstract String getRelativePath(); protected void doTest() { + doTest(getIntentionName()); + } + + protected void doTest(String intentionName) { final String testName = getTestName(false); - CodeInsightTestUtil.doIntentionTest(myFixture, getIntentionName(), testName + ".java", testName + "_after.java"); + CodeInsightTestUtil.doIntentionTest(myFixture, intentionName, testName + ".java", testName + "_after.java"); } protected void assertIntentionNotAvailable() {