mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 07:15:51 +07:00
39 lines
873 B
Java
39 lines
873 B
Java
/*
|
|
* Copyright (c) 2000-2006 JetBrains s.r.o. All Rights Reserved.
|
|
*/
|
|
|
|
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 EqualsAndHashcode myTool = new EqualsAndHashcode();
|
|
|
|
@Override
|
|
protected String getTestDataPath() {
|
|
return JavaTestUtil.getJavaTestDataPath() + "/inspection";
|
|
}
|
|
|
|
private void doTest() throws Exception {
|
|
doTest("equalsAndHashcode/" + getTestName(true), myTool);
|
|
}
|
|
|
|
|
|
@Override
|
|
protected void tearDown() throws Exception {
|
|
myTool = null;
|
|
super.tearDown();
|
|
}
|
|
|
|
public void testInnerClass() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testHierarchy() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
}
|