Skip to content

Commit

Permalink
Convert tests from DynaTest to JUnit5
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Jan 31, 2025
1 parent d370770 commit ad833c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ dependencies {

// tests
testImplementation(libs.dynatest)
testImplementation(kotlin("test"))
testImplementation(libs.junit.jupiter.engine)
testImplementation(libs.bundles.gson)
testImplementation(libs.slf4j.simple)
testImplementation(libs.h2)
Expand Down
8 changes: 4 additions & 4 deletions src/test/kotlin/com/github/vokorm/UtilsTest.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.github.vokorm

import com.github.mvysny.dynatest.DynaTest
import org.junit.jupiter.api.Test
import kotlin.test.expect

class UtilsTest : DynaTest({
test("implements") {
class UtilsTest {
@Test fun implements() {
expect(true) { Person::class.java.implements(KEntity::class.java) }
expect(false) { String::class.java.implements(KEntity::class.java) }
}
})
}

0 comments on commit ad833c0

Please sign in to comment.