/*
 * Copyright (c) 2000-2006 JetBrains s.r.o. All Rights Reserved.
 */

/*
 * Created by IntelliJ IDEA.
 * User: Anna.Kozlova
 * Date: 07-Aug-2006
 * Time: 20:34:37
 */
package com.intellij.codeInspection;

import com.intellij.JavaTestUtil;
import com.intellij.codeInspection.equalsAndHashcode.EqualsAndHashcode;
import com.intellij.testFramework.InspectionTestCase;

public class EqualsAndHashCodeTest extends InspectionTestCase {
  private final EqualsAndHashcode myTool = new EqualsAndHashcode();

  @Override
  protected String getTestDataPath() {
    return JavaTestUtil.getJavaTestDataPath() + "/inspection";
  }

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    myTool.projectOpened(getProject());
  }


  @Override
  protected void tearDown() throws Exception {
    myTool.projectClosed(getProject());
    super.tearDown();
  }

  private void doTest() throws Exception {
    doTest("equalsAndHashcode/" + getTestName(true), myTool);
  }


  public void testInnerClass() throws Exception {
    doTest();
  }

  public void testHierarchy() throws Exception {
    doTest();
  }

}

@@ -618,255 +618,8 @@
  %7D%0A%0A
-  @Override%0A  protected void setUp() throws Exception %7B%0A    super.setUp();%0A    myTool.projectOpened(getProject());%0A  %7D%0A%0A%0A  @Override%0A  protected void tearDown() throws Exception %7B%0A    myTool.projectClosed(getProject());%0A    super.tearDown();%0A  %7D%0A%0A
   pr

remove unneeded setUp() and tearDown() from test