blob: a79ebec4a97f0b67e287e33015b9e067b3c3803b [file] [log] [blame]
package com.siyeh.ig.bugs;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
public class MismatchedCollectionQueryUpdateInspectionTest extends LightInspectionTestCase {
public void testMismatchedCollectionQueryUpdate() throws Exception {
doTest();
}
@Override
protected String[] getEnvironmentClasses() {
return new String[] {
"package java.util;" +
"public class HashSet<E> implements Set<E> {" +
" public HashSet() {}" +
" public HashSet(Collection<? extends E> collection) {}" +
"}",
"package java.util.concurrent;" +
"public interface BlockingDeque<E> {" +
" E takeFirst() throws InterruptedException;" +
" void putLast(E e) throws InterruptedException;" +
"}",
"package java.util.concurrent;" +
"public class LinkedBlockingDeque<E> implements BlockingDeque {}",
"package java.lang;" +
"public class InterruptedException extends Exception {}"
};
}
@Override
protected InspectionProfileEntry getInspection() {
return new MismatchedCollectionQueryUpdateInspection();
}
}