make IG test light

This commit is contained in:
Bas Leijdekkers
2014-09-30 11:33:06 +02:00
parent ff22465de0
commit bbb746b37a
3 changed files with 11 additions and 14 deletions
@@ -3,7 +3,7 @@ package com.siyeh.igtest.security.design_for_extension;
class DesignForExtension {
public boolean equals(Object o) {
public boolean <warning descr="Method 'equals()' may be overridden and its functionality ignored">equals</warning>(Object o) {
return true;
}
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>DesignForExtension.java</file>
<line>6</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Design for extension</problem_class>
<description>Method &lt;code&gt;equals()&lt;/code&gt; may be overridden and its functionality ignored #loc</description>
</problem>
</problems>
@@ -1,10 +1,16 @@
package com.siyeh.ig.security;
import com.siyeh.ig.IGInspectionTestCase;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
import org.jetbrains.annotations.Nullable;
public class DesignForExtensionInspectionTest extends IGInspectionTestCase {
public class DesignForExtensionInspectionTest extends LightInspectionTestCase {
public void test() throws Exception {
doTest("com/siyeh/igtest/security/design_for_extension", new DesignForExtensionInspection());
public void testDesignForExtension() { doTest(); }
@Nullable
@Override
protected InspectionProfileEntry getInspection() {
return new DesignForExtensionInspection();
}
}