diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/controlflow/switch_statements_without_default/SwitchStatementsWithoutDefault.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/controlflow/switch_statements_without_default/SwitchStatementsWithoutDefault.java
index 5bfc4e26db10..fa5e6b85cb6d 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/controlflow/switch_statements_without_default/SwitchStatementsWithoutDefault.java
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/controlflow/switch_statements_without_default/SwitchStatementsWithoutDefault.java
@@ -29,7 +29,7 @@ public class SwitchStatementsWithoutDefault
break;
}
- switch(bar)
+ switch(bar)
{
case 3:
case 4:
@@ -52,13 +52,13 @@ public class SwitchStatementsWithoutDefault
case baz:
break;
}
- switch(var)
+ switch(var)
{
case bar:
case baz:
break;
}
- switch (var)
+ switch (var)
}
enum MyEnum {
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/controlflow/switch_statements_without_default/expected.xml b/plugins/InspectionGadgets/test/com/siyeh/igtest/controlflow/switch_statements_without_default/expected.xml
deleted file mode 100644
index e3ec484499da..000000000000
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/controlflow/switch_statements_without_default/expected.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- SwitchStatementsWithoutDefault.java
- 32
- 'switch' statement without 'default' branch
- <code>switch</code> statement without 'default' branch #loc
-
-
-
- SwitchStatementsWithoutDefault.java
- 55
- 'switch' statement without 'default' branch
- <code>switch</code> statement without 'default' branch #loc
-
-
-
\ No newline at end of file
diff --git a/plugins/InspectionGadgets/testsrc/com/siyeh/ig/controlflow/SwitchStatementWithoutDefaultInspectionTest.java b/plugins/InspectionGadgets/testsrc/com/siyeh/ig/controlflow/SwitchStatementWithoutDefaultInspectionTest.java
deleted file mode 100644
index d8c1cf9c1bcd..000000000000
--- a/plugins/InspectionGadgets/testsrc/com/siyeh/ig/controlflow/SwitchStatementWithoutDefaultInspectionTest.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.siyeh.ig.controlflow;
-
-import com.siyeh.ig.IGInspectionTestCase;
-
-public class SwitchStatementWithoutDefaultInspectionTest extends IGInspectionTestCase {
-
- public void test() {
- doTest("com/siyeh/igtest/controlflow/switch_statements_without_default",
- new SwitchStatementsWithoutDefaultInspection());
- }
-}
\ No newline at end of file
diff --git a/plugins/InspectionGadgets/testsrc/com/siyeh/ig/controlflow/SwitchStatementsWithoutDefaultInspectionTest.java b/plugins/InspectionGadgets/testsrc/com/siyeh/ig/controlflow/SwitchStatementsWithoutDefaultInspectionTest.java
new file mode 100644
index 000000000000..fb6ae2300324
--- /dev/null
+++ b/plugins/InspectionGadgets/testsrc/com/siyeh/ig/controlflow/SwitchStatementsWithoutDefaultInspectionTest.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2000-2017 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.ig.controlflow;
+
+import com.intellij.codeInspection.InspectionProfileEntry;
+import com.siyeh.ig.LightInspectionTestCase;
+import org.jetbrains.annotations.Nullable;
+
+public class SwitchStatementsWithoutDefaultInspectionTest extends LightInspectionTestCase {
+
+ public void testSwitchStatementsWithoutDefault() {
+ doTest();
+ }
+
+ @Nullable
+ @Override
+ protected InspectionProfileEntry getInspection() {
+ return new SwitchStatementsWithoutDefaultInspection();
+ }
+}
\ No newline at end of file