All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmTest.com.bkahlert.kommons.test.junit.SimpleIdResolverTest.kt Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
package com.bkahlert.kommons.test.junit

import com.bkahlert.kommons.test.junit.SimpleIdResolver.Companion.simpleId
import com.bkahlert.kommons.test.test
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtensionContext
import org.junit.platform.engine.UniqueId

class SimpleIdResolverTest {

    @Test fun test_name(simpleId: SimpleId, uniqueId: UniqueId) = test {
        simpleId shouldBe SimpleId.from(uniqueId)
    }

    @Test fun extension(simpleId: SimpleId, extensionContext: ExtensionContext) = test {
        simpleId shouldBe extensionContext.simpleId
    }

    @Nested
    inner class NestedTest {

        @Test fun test_name(simpleId: SimpleId, uniqueId: UniqueId) = test {
            simpleId shouldBe SimpleId.from(uniqueId)
        }

        @Test fun extension(simpleId: SimpleId, extensionContext: ExtensionContext) = test {
            simpleId shouldBe extensionContext.simpleId
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy