fun <T : Any> expect(subject: T): <ERROR CLASS>
(source)
Creates an AssertionPlant for the given subject.
Return
The newly created plant.
See Also
fun <T : Any> expect(subject: T, assertionCreator: Assert<T>.() -> Unit): <ERROR CLASS>
(source)
Creates an AssertionPlant for the given subject and AssertionPlant.addAssertionsCreatedBy the given assertionCreator lambda where the created Assertions are added as a group and usually (depending on the configured Reporter) reported as a whole.
Return
The newly created plant.
See Also
CoreFactory.newReportingPlantAndAddAssertionsCreatedBy
fun expect(act: () -> Unit): Builder
(source)
Creates a ThrowableThrown.Builder for the given function act which is expected to throw a Throwable.
Return
The newly created ThrowableThrown.Builder.