fix case of testdata
[fedora-idea.git] / java / java-tests / testSrc / com / intellij / codeInspection / RedundantThrowTest.java
blobac0638787bda976a7cbe92299f031363b02f66ff
1 package com.intellij.codeInspection;
3 import com.intellij.JavaTestUtil;
4 import com.intellij.codeInspection.unneededThrows.RedundantThrows;
5 import com.intellij.testFramework.InspectionTestCase;
8 public class RedundantThrowTest extends InspectionTestCase {
9 @Override
10 protected String getTestDataPath() {
11 return JavaTestUtil.getJavaTestDataPath() + "/inspection";
14 private void doTest() throws Exception {
15 doTest(false);
18 private void doTest(boolean checkRange) throws Exception {
19 final RedundantThrows tool = new RedundantThrows();
20 doTest("redundantThrow/" + getTestName(false), tool, checkRange);
23 public void testSCR8322() throws Exception { doTest(); }
25 public void testSCR6858() throws Exception { doTest(); }
27 public void testSCR6858ByRange() throws Exception { doTest(true); }
29 public void testSCR14543() throws Exception { doTest(); }
30 public void testRemote() throws Exception { doTest(); }
32 public void testEntryPoint() throws Exception {
33 final RedundantThrows tool = new RedundantThrows();
34 doTest("redundantThrow/" + getTestName(true), tool, false, true);
37 public void testinherited() throws Exception {
38 doTest();