mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
InheritedContract test (IDEA-195796)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
abstract class A {
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if(object == null) return <warning descr="Contract clause 'null -> false' is violated">true</warning>;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
abstract class B {
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,7 @@ public class ContractCheckTest extends LightCodeInsightFixtureTestCase {
|
||||
public void testDelegationWithUnknownArgument() { doTest(); }
|
||||
public void testEqualsUnknownValue() { doTest(); }
|
||||
public void testMissingFail() { doTest(); }
|
||||
public void testInheritedContract() { doTest(); }
|
||||
public void testExceptionWhenDeclaredNotNull() { doTest(); }
|
||||
public void testCheckSuperContract() { doTest(); }
|
||||
public void testNestedCallsMayThrow() { doTest(); }
|
||||
|
||||
Reference in New Issue
Block a user