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,11 +1,11 @@
package test.properties.delegation
import org.junit.Test as test
import org.junit.Test
import kotlin.test.*
import kotlin.properties.*
class NotNullVarTest() {
@test fun doTest() {
@Test fun doTest() {
NotNullVarTestGeneric("a", "b").doTest()
}
}
@@ -31,7 +31,7 @@ class ObservablePropertyTest {
assertEquals(new, b, "New value has already been set")
})
@test fun doTest() {
@Test fun doTest() {
b = 4
assertTrue(b == 4, "fail: b != 4")
assertTrue(result, "fail: result should be true")
@@ -49,7 +49,7 @@ class VetoablePropertyTest {
result
})
@test fun doTest() {
@Test fun doTest() {
val firstValue = A(true)
b = firstValue
assertTrue(b == firstValue, "fail1: b should be firstValue = A(true)")
@@ -1,7 +1,7 @@
package test.properties.delegation.map
import kotlin.test.*
import org.junit.Test as test
import org.junit.Test
class ValByMapExtensionsTest {
val map: Map<String, String> = hashMapOf("a" to "all", "b" to "bar", "c" to "code")
@@ -18,7 +18,7 @@ class ValByMapExtensionsTest {
val x: Double by genericMap
@test fun doTest() {
@Test fun doTest() {
assertEquals("all", a)
assertEquals("bar", b)
assertEquals("code", c)
@@ -43,7 +43,7 @@ class VarByMapExtensionsTest {
var a2: String by map2.withDefault { "empty" }
//var x: Int by map2 // prohibited by type system
@test fun doTest() {
@Test fun doTest() {
assertEquals("all", a)
assertEquals(null, b)
assertEquals(1, c)
@@ -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.")