Minor: normalize '@Test' annotation casing in all tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package test.properties.delegation.lazy
|
||||
|
||||
import org.junit.Test as test
|
||||
import org.junit.Test
|
||||
import kotlin.properties.*
|
||||
import kotlin.test.*
|
||||
|
||||
@@ -10,7 +10,7 @@ class LazyValTest {
|
||||
++result
|
||||
}
|
||||
|
||||
@test fun doTest() {
|
||||
@Test fun doTest() {
|
||||
a
|
||||
assertTrue(a == 1, "fail: initializer should be invoked only once")
|
||||
}
|
||||
@@ -23,7 +23,7 @@ class SynchronizedLazyValTest {
|
||||
++result
|
||||
}
|
||||
|
||||
@test fun doTest() {
|
||||
@Test fun doTest() {
|
||||
synchronized(this) {
|
||||
kotlin.concurrent.thread { a } // not available in js
|
||||
result = 1
|
||||
@@ -40,7 +40,7 @@ class UnsafeLazyValTest {
|
||||
++result
|
||||
}
|
||||
|
||||
@test fun doTest() {
|
||||
@Test fun doTest() {
|
||||
a
|
||||
assertTrue(a == 1, "fail: initializer should be invoked only once")
|
||||
}
|
||||
@@ -53,7 +53,7 @@ class NullableLazyValTest {
|
||||
val a: Int? by lazy { resultA++; null}
|
||||
val b by lazy { foo() }
|
||||
|
||||
@test fun doTest() {
|
||||
@Test fun doTest() {
|
||||
a
|
||||
b
|
||||
|
||||
@@ -76,7 +76,7 @@ class UnsafeNullableLazyValTest {
|
||||
val a: Int? by lazy(LazyThreadSafetyMode.NONE) { resultA++; null}
|
||||
val b by lazy(LazyThreadSafetyMode.NONE) { foo() }
|
||||
|
||||
@test fun doTest() {
|
||||
@Test fun doTest() {
|
||||
a
|
||||
b
|
||||
|
||||
@@ -96,7 +96,7 @@ class IdentityEqualsIsUsedToUnescapeLazyValTest {
|
||||
var equalsCalled = 0
|
||||
private val a by lazy { ClassWithCustomEquality { equalsCalled++ } }
|
||||
|
||||
@test fun doTest() {
|
||||
@Test fun doTest() {
|
||||
a
|
||||
a
|
||||
assertTrue(equalsCalled == 0, "fail: equals called $equalsCalled times.")
|
||||
|
||||
Reference in New Issue
Block a user