atrium-spec / ch.tutteli.atrium.spec / org.jetbrains.spek.api.dsl.SpecBody

Extensions for org.jetbrains.spek.api.dsl.SpecBody

checkGenericNarrowingAssertion

fun <T> SpecBody.checkGenericNarrowingAssertion(description: String, act: (T.() -> Unit) -> Unit, immediate: T.() -> Unit, lazy: T.() -> Unit, vararg otherMethods: Pair<String, T.() -> Unit>): Unit
fun <T> SpecBody.checkGenericNarrowingAssertion(description: String, act: (T.() -> Unit) -> Unit, vararg methods: Pair<String, T.() -> Unit>): Unit

checkNarrowingAssertion

fun <T : Any> SpecBody.checkNarrowingAssertion(description: String, act: (IAssertionPlant<T>.() -> Unit) -> Unit, immediate: IAssertionPlant<T>.() -> Unit, lazy: IAssertionPlant<T>.() -> Unit, vararg otherMethods: Pair<String, IAssertionPlant<T>.() -> Unit>): Unit

checkNarrowingNullableAssertion

fun <T> SpecBody.checkNarrowingNullableAssertion(description: String, act: (IAssertionPlantNullable<T>.() -> Unit) -> Unit, immediate: IAssertionPlantNullable<T>.() -> Unit, lazy: IAssertionPlantNullable<T>.() -> Unit, vararg otherMethods: Pair<String, IAssertionPlantNullable<T>.() -> Unit>): Unit

inCaseOf

fun SpecBody.inCaseOf(description: String, body: ActionBody.() -> Unit): Unit

setUp

fun SpecBody.setUp(description: String, body: SpecBody.() -> Unit): Unit