Granular test configurations
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package test;
|
||||
|
||||
class Test extends Base {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return super.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object clone() throws CloneNotSupportedException {
|
||||
return super.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
|
||||
class Base {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return super.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object clone() throws CloneNotSupportedException {
|
||||
return super.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package test
|
||||
open class Test() : Base() {
|
||||
override public fun hashCode() : Int {
|
||||
return super.hashCode()
|
||||
}
|
||||
override public fun equals(o : Any?) : Boolean {
|
||||
return super.equals(o)
|
||||
}
|
||||
override protected fun clone() : Any? {
|
||||
return super.clone()
|
||||
}
|
||||
override public fun toString() : String? {
|
||||
return super.toString()
|
||||
}
|
||||
override protected fun finalize() : Unit {
|
||||
super.finalize()
|
||||
}
|
||||
}
|
||||
open class Base() {
|
||||
open public fun hashCode() : Int {
|
||||
return System.identityHashCode(this)
|
||||
}
|
||||
open public fun equals(o : Any?) : Boolean {
|
||||
return this.identityEquals(o)
|
||||
}
|
||||
open protected fun clone() : Any? {
|
||||
return super.clone()
|
||||
}
|
||||
open public fun toString() : String? {
|
||||
return getJavaClass<Base>.getName() + '@' + Integer.toHexString(hashCode())
|
||||
}
|
||||
open protected fun finalize() : Unit {
|
||||
super.finalize()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package demo;
|
||||
|
||||
final class Final {
|
||||
void test() {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package demo
|
||||
class Final() {
|
||||
fun test() : Unit {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
class A {void a() {}} final class B extends A {void a() {}}
|
||||
@@ -0,0 +1,8 @@
|
||||
open class A() {
|
||||
open fun a() : Unit {
|
||||
}
|
||||
}
|
||||
class B() : A() {
|
||||
override fun a() : Unit {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
void foo() {}
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
void foo() {}
|
||||
}
|
||||
|
||||
class C extends B {
|
||||
void foo() {}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
open class A() {
|
||||
open fun foo() : Unit {
|
||||
}
|
||||
}
|
||||
open class B() : A() {
|
||||
override fun foo() : Unit {
|
||||
}
|
||||
}
|
||||
open class C() : B() {
|
||||
override fun foo() : Unit {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package test;
|
||||
|
||||
class Test {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return super.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object clone() throws CloneNotSupportedException {
|
||||
return super.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package test
|
||||
open class Test() {
|
||||
open public fun hashCode() : Int {
|
||||
return System.identityHashCode(this)
|
||||
}
|
||||
open public fun equals(o : Any?) : Boolean {
|
||||
return this.identityEquals(o)
|
||||
}
|
||||
open protected fun clone() : Any? {
|
||||
return super.clone()
|
||||
}
|
||||
open public fun toString() : String? {
|
||||
return getJavaClass<Test>.getName() + '@' + Integer.toHexString(hashCode())
|
||||
}
|
||||
open protected fun finalize() : Unit {
|
||||
super.finalize()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package demo;
|
||||
|
||||
class Test {
|
||||
void test(Object ... args) {
|
||||
args = new Integer[] {1, 2, 3};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package demo
|
||||
open class Test() {
|
||||
open fun test(vararg var args : Any?) : Unit {
|
||||
args = array<Int?>(1, 2, 3)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package demo;
|
||||
|
||||
class Test {
|
||||
int test(int i) {
|
||||
i = 10;
|
||||
return i + 20;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package demo
|
||||
open class Test() {
|
||||
open fun test(var i : Int) : Int {
|
||||
i = 10
|
||||
return i + 20
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user