Minor: normalize '@Test' annotation casing in all tests.

This commit is contained in:
Ilya Gorbunov
2016-11-16 21:26:39 +03:00
parent 50cd620f92
commit 6a70761783
48 changed files with 749 additions and 751 deletions
@@ -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.")