Skip to content

Commit

Permalink
Switch primitives and retrofit packages to kotlin-test
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed Apr 24, 2024
1 parent 960e821 commit 198d87d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package de.sipgate.dachlatten.primitives

import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class BooleanExtTest {
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package de.sipgate.dachlatten.primitives

import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class BooleanNullableExtTest {
@Test
Expand Down Expand Up @@ -39,4 +39,4 @@ class BooleanNullableExtTest {
val emptyList = arrayOf<Boolean?>()
assertTrue(emptyList.allTrue)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package de.sipgate.dachlatten.primitives
import de.sipgate.dachlatten.primitives.EnumExtTest.SomeValues.A
import de.sipgate.dachlatten.primitives.EnumExtTest.SomeValues.B
import de.sipgate.dachlatten.primitives.EnumExtTest.SomeValues.C
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class EnumExtTest {
enum class SomeValues {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.sipgate.dachlatten.primitives

import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import kotlin.test.Test
import kotlin.test.assertEquals

class StringExtTest {
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package de.sipgate.dachlatten.primitives.filter

import kotlinx.coroutines.test.runTest
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class PredicateTest {
private val truePredicate = object : Predicate<Any> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import kotlinx.serialization.json.Json
import mockwebserver3.MockResponse
import mockwebserver3.MockWebServer
import mockwebserver3.junit5.internal.MockWebServerExtension
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.ExperimentalOkHttpApi
import org.junit.jupiter.api.Assertions.assertEquals
import okhttp3.MediaType.Companion.toMediaType
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
Expand All @@ -17,6 +16,7 @@ import retrofit2.Retrofit
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import kotlin.test.assertEquals

@OptIn(ExperimentalSerializationApi::class, ExperimentalOkHttpApi::class)
@ExtendWith(MockWebServerExtension::class)
Expand Down

0 comments on commit 198d87d

Please sign in to comment.