summaryrefslogtreecommitdiff
path: root/plugins/IntentionPowerPak/testSrc/com
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IntentionPowerPak/testSrc/com')
-rw-r--r--plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/types/MakeMethodDefaultTest.java44
-rw-r--r--plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/whileloop/ReplaceDoWhileWithWhileLoopIntentionTest.java2
2 files changed, 46 insertions, 0 deletions
diff --git a/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/types/MakeMethodDefaultTest.java b/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/types/MakeMethodDefaultTest.java
new file mode 100644
index 000000000000..e81dda48a2ea
--- /dev/null
+++ b/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/types/MakeMethodDefaultTest.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2000-2013 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.siyeh.ipp.types;
+
+import com.siyeh.IntentionPowerPackBundle;
+import com.siyeh.ipp.IPPTestCase;
+
+public class MakeMethodDefaultTest extends IPPTestCase {
+
+ @Override
+ protected String getIntentionName() {
+ return "Make method default";
+ }
+
+ @Override
+ protected String getRelativePath() {
+ return "types/makeDefault";
+ }
+
+ public void testInInterface() throws Exception {
+ doTest();
+ }
+
+ public void testAlreadyDefault() throws Exception {
+ assertIntentionNotAvailable();
+ }
+
+ public void testAlreadyHasBody() throws Exception {
+ assertIntentionNotAvailable();
+ }
+}
diff --git a/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/whileloop/ReplaceDoWhileWithWhileLoopIntentionTest.java b/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/whileloop/ReplaceDoWhileWithWhileLoopIntentionTest.java
index be2ec43a44c0..daa74814338d 100644
--- a/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/whileloop/ReplaceDoWhileWithWhileLoopIntentionTest.java
+++ b/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/whileloop/ReplaceDoWhileWithWhileLoopIntentionTest.java
@@ -6,6 +6,8 @@ import com.siyeh.ipp.IPPTestCase;
public class ReplaceDoWhileWithWhileLoopIntentionTest extends IPPTestCase {
public void testWithoutBraces() { doTest(); }
+ public void testFinalVariable1() { doTest(); }
+ public void testFinalVariable2() { doTest(); }
@Override
protected String getRelativePath() {