From c1ace1f7e1e49c81bb4b75377c99f07be340abfe Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Mon, 8 Jul 2013 11:26:24 -0700 Subject: Snapshot aea001abfc1b38fec3a821bcd5174cc77dc75787 from master branch of git://git.jetbrains.org/idea/community.git Change-Id: Icdea2a2bd7ad43b4d05967b1f0479db3bda1c93c --- .../com/siyeh/ipp/types/MakeMethodDefaultTest.java | 44 ++++++++++++++++++++++ .../ReplaceDoWhileWithWhileLoopIntentionTest.java | 2 + 2 files changed, 46 insertions(+) create mode 100644 plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/types/MakeMethodDefaultTest.java (limited to 'plugins/IntentionPowerPak/testSrc/com') 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() { -- cgit v1.2.3