refactored kool.test -> kotlin.test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* A number of helper methods for writing Kool unit tests
|
||||
*/
|
||||
package kool.test
|
||||
package kotlin.test
|
||||
|
||||
import org.junit.Assert
|
||||
import junit.framework.TestCase
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test.collections
|
||||
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
// TODO can we avoid importing all this stuff by default I wonder?
|
||||
// e.g. making println and the collection builder methods public by default?
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
import java.util.Vector
|
||||
import junit.framework.TestCase
|
||||
import kool.test.assertEquals
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class EnumerationIteratorTest() : TestCase() {
|
||||
fun testIteration () {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package test.standard
|
||||
|
||||
import std.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
class GetOrElseTest() : TestSupport() {
|
||||
val v1: String? = "hello"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test.collections
|
||||
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
import std.io.*
|
||||
import std.util.*
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package testjc
|
||||
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
class C()
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test.collections
|
||||
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
// TODO can we avoid importing all this stuff by default I wonder?
|
||||
// e.g. making println and the collection builder methods public by default?
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test.collections
|
||||
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
// TODO can we avoid importing all this stuff by default I wonder?
|
||||
// e.g. making println and the collection builder methods public by default?
|
||||
|
||||
@@ -4,7 +4,7 @@ import std.math.*
|
||||
import java.math.BigInteger
|
||||
import java.math.BigDecimal
|
||||
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
class MathTest : TestSupport() {
|
||||
fun testBigInteger() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package test.collections
|
||||
import std.*
|
||||
import std.io.*
|
||||
import std.util.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
import java.util.*
|
||||
import java.io.*
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package test.collections
|
||||
import std.*
|
||||
import std.io.*
|
||||
import std.util.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
import java.util.*
|
||||
|
||||
class SetTest() : TestSupport() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package test.collections
|
||||
|
||||
import std.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
class StandardCollectionTest() : TestSupport() {
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package test.stdlib.issues
|
||||
|
||||
import java.util.List
|
||||
import std.util.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
private fun listDifference<T>(first : List<T>, second : List<T>) : List<T> {
|
||||
return first.filter{ !second.contains(it) }.toList()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package testString
|
||||
|
||||
import std.io.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
import junit.framework.*
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package test.dom
|
||||
import std.*
|
||||
import std.dom.*
|
||||
import std.util.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
import org.w3c.dom.*
|
||||
|
||||
class DomBuilderTest() : TestSupport() {
|
||||
|
||||
@@ -2,7 +2,7 @@ package test.dom
|
||||
|
||||
import std.*
|
||||
import std.dom.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
import org.w3c.dom.*
|
||||
|
||||
class DomTest() : TestSupport() {
|
||||
|
||||
@@ -2,7 +2,7 @@ package test.language
|
||||
|
||||
import junit.framework.TestCase
|
||||
import java.util.Collection
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
|
||||
class NullableCollectionsTest : TestCase() {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package test.properties
|
||||
import std.*
|
||||
import std.properties.*
|
||||
import std.util.*
|
||||
import kool.test.*
|
||||
import kotlin.test.*
|
||||
import java.util.*
|
||||
import junit.framework.TestCase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user