blob: 5553d25851999590e42d3e05da063cc4868543e3 [file] [log] [blame]
package com.siyeh.ig.abstraction;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
public class DeclareCollectionAsInterfaceInspectionTest extends LightInspectionTestCase {
public void testDeclareCollectionAsInterface() { doTest(); }
@Override
protected InspectionProfileEntry getInspection() {
return new DeclareCollectionAsInterfaceInspection();
}
@Override
protected String[] getEnvironmentClasses() {
return new String[] {
"package java.util;" +
"public class HashSet<E> extends AbstractSet<E> implements Set<E>, Cloneable, java.io.Serializable {" +
" public boolean add(E e) { return null; }" +
"}"
};
}
}