jvmMain.com.bkahlert.kommons.test.junit.ExtensionContextResolver.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kommons-test Show documentation
Show all versions of kommons-test Show documentation
Kommons Test is a Kotlin Multiplatform Library to ease testing.
package com.bkahlert.kommons.test.junit
import org.junit.jupiter.api.extension.ExtensionContext
import org.junit.jupiter.api.extension.ParameterContext
import org.junit.jupiter.api.extension.support.TypeBasedParameterResolver
import org.junit.platform.engine.UniqueId
/** [ExtensionContext] that resolves the [UniqueId] of the current test or container.*/
public class ExtensionContextResolver : TypeBasedParameterResolver() {
override fun resolveParameter(parameterContext: ParameterContext, extensionContext: ExtensionContext): ExtensionContext =
extensionContext
}