update testdata for https://github.com/JetBrains/kotlin/pull/896/
This commit is contained in:
+1
-1
@@ -5,6 +5,6 @@ import org.junit.runners.Parameterized
|
||||
class A {
|
||||
@Parameterized.Parameters
|
||||
fun data(): Collection<Array<Any>> {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,6 +5,6 @@ import org.junit.Before
|
||||
class A {
|
||||
@Before
|
||||
fun setUp() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,7 +5,7 @@ import org.junit.Before
|
||||
class A {
|
||||
@org.testng.annotations.BeforeMethod
|
||||
fun setUp() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
@Before
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ import org.junit.After
|
||||
class A {
|
||||
@After
|
||||
fun tearDown() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,7 +5,7 @@ import org.junit.After
|
||||
class A {
|
||||
@org.testng.annotations.AfterMethod
|
||||
fun tearDown() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
@After
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ import org.junit.Test
|
||||
class A {
|
||||
@Test
|
||||
fun name() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,6 +4,6 @@ import junit.framework.TestCase
|
||||
|
||||
class A : TestCase() {
|
||||
fun testName() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
|
||||
@Test class A {
|
||||
@DataProvider(name = "name")
|
||||
fun name(): Array<Array<Any>> {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
|
||||
@Test class A {
|
||||
@BeforeMethod
|
||||
fun setUp() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
|
||||
@Test class A {
|
||||
@AfterMethod
|
||||
fun tearDown() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,6 +5,6 @@ import org.testng.annotations.Test
|
||||
@Test class A {
|
||||
@Test
|
||||
fun testName() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,6 @@ class B : A() {
|
||||
* @see TEST
|
||||
*/
|
||||
override fun foo() {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,6 @@ interface T {
|
||||
|
||||
class C : T {
|
||||
override fun foo(a: Int) {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ interface T {
|
||||
|
||||
class C(t :T) : T by t {
|
||||
override fun bar() {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
@@ -13,7 +13,7 @@ class C(t :T) : T by t {
|
||||
}
|
||||
|
||||
override fun foo() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
|
||||
@@ -23,7 +23,7 @@ class C : B(), I {
|
||||
}
|
||||
|
||||
override fun g() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ interface T {
|
||||
|
||||
class C : T {
|
||||
override fun Foo(): (String) -> Unit {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,6 @@ interface T {
|
||||
|
||||
class C : T {
|
||||
override fun Foo(): (String) -> Unit {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,6 +4,6 @@ interface Trait {
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun <A, B : Runnable, E : Map.Entry<A, B>> foo() where B : Cloneable, B : Comparable<B> {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -8,14 +8,14 @@ interface Some<T> {
|
||||
|
||||
class SomeOther<S> : Some<S> {
|
||||
override fun someFoo() {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
|
||||
override fun someGenericFoo(): S {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun someOtherFoo(): Int {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,6 @@ interface G<T> {
|
||||
|
||||
class GC() : G<Int> {
|
||||
override fun foo(t: Int): Int {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@
|
||||
|
||||
class MyClass<A: Comparable<A>> : Iterable<A> {
|
||||
override fun iterator(): Iterator<A> {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
class C : (String) -> Boolean {
|
||||
override fun invoke(p1: String): Boolean {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,6 +3,6 @@ import foo.B
|
||||
|
||||
class C : A() {
|
||||
override fun foo(x: MutableList<Any?>?, y: String?): B<*> {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ package foo
|
||||
|
||||
class Impl: B {
|
||||
override fun foo(r: Runnable?) {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ import foo.Intf
|
||||
|
||||
class Impl(): Intf {
|
||||
override fun getFooBar(): String {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ import foo.Intf
|
||||
|
||||
class Impl(): Intf {
|
||||
override fun fooBar(i: Int, s: Array<out String>?, foo: Any?) {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ fun f() {
|
||||
|
||||
object : C<R>() {
|
||||
override fun f(a: R) {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ interface B {
|
||||
|
||||
class C : A(), B {
|
||||
override fun bar() {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@ interface A {
|
||||
|
||||
class B : A {
|
||||
override fun String.foo() {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
// ERROR: Unresolved reference: println
|
||||
open class A() {
|
||||
open val method : () -> Unit? = {println("hello")}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// ERROR: Unresolved reference: println
|
||||
interface A<T> {
|
||||
fun foo(value : T) : Unit = println(value)
|
||||
}
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// ERROR: Unresolved reference: println
|
||||
open class A() {
|
||||
open fun foo(value : Int) : Unit = println(value)
|
||||
open val bar : Int = 0
|
||||
|
||||
+1
-1
@@ -20,6 +20,6 @@ class C : A(), I {
|
||||
}
|
||||
|
||||
override fun z() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ interface Test {
|
||||
class SomeTest : Test {
|
||||
val hello = 12
|
||||
override fun test() {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
|
||||
override val testProp: Int
|
||||
|
||||
@@ -3,7 +3,7 @@ import lib.ArrayFactory
|
||||
|
||||
public class Impl : ArrayFactory {
|
||||
override fun create(): lib.Array {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ interface Base {
|
||||
|
||||
class Derived : Base {
|
||||
override fun foo(c: C<*>) {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -30,15 +30,15 @@ abstract class B : I2, A(), I3 {
|
||||
}
|
||||
|
||||
override fun i() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun i1() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun i2() {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
|
||||
@@ -4,6 +4,6 @@ interface G<T> {
|
||||
|
||||
class GC<T>() : G<T> {
|
||||
override fun foo(t: T): T {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,6 @@ interface Some {
|
||||
|
||||
class SomeOther : Some {
|
||||
override fun foo(some: Int?): Int {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user