mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix test names
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2010 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 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.
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2010 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 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.
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright 2000-2012 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.
|
||||
*/
|
||||
public class Test {
|
||||
void foo() throws java.lang.Exception {
|
||||
throw new java.io.IOException();
|
||||
}
|
||||
|
||||
void bar() throws java.io.IOException {
|
||||
throw new java.lang.Exception();
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
public class Test {
|
||||
void foo() throws java.lang.Exception {
|
||||
throw new java.io.IOException();
|
||||
}
|
||||
|
||||
void bar() throws java.io.IOException {
|
||||
throw new java.lang.Exception();
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,24 @@
|
||||
/*
|
||||
* Copyright 2000-2012 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.intellij.codeInspection;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
import com.intellij.codeInspection.unneededThrows.RedundantThrows;
|
||||
import com.intellij.testFramework.InspectionTestCase;
|
||||
|
||||
|
||||
public class RedundantThrowTest extends InspectionTestCase {
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
@@ -27,6 +41,7 @@ public class RedundantThrowTest extends InspectionTestCase {
|
||||
public void testSCR6858ByRange() throws Exception { doTest(true); }
|
||||
|
||||
public void testSCR14543() throws Exception { doTest(); }
|
||||
|
||||
public void testRemote() throws Exception { doTest(); }
|
||||
|
||||
public void testEntryPoint() throws Exception {
|
||||
@@ -34,16 +49,15 @@ public class RedundantThrowTest extends InspectionTestCase {
|
||||
doTest("redundantThrow/" + getTestName(true), tool, false, true);
|
||||
}
|
||||
|
||||
public void testinherited() throws Exception {
|
||||
public void testInherited() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testimplicitSuper() throws Exception {
|
||||
public void testImplicitSuper() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testselfCall() throws Exception {
|
||||
public void testSelfCall() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user