atrium-api-fluent-en_GB-jdk8-jvm / ch.tutteli.atrium.api.fluent.en_GB.jdk8 / asPath

asPath

fun <T : File> <ERROR CLASS><T>.asPath(): <ERROR CLASS><Path>

Turns Expect<File> into Expect<Path>.

The transformation as such is not reflected in reporting. Use feature(File::toPath) if you want to show the transformation in reporting.

Return
The newly created Expect for the transformed subject.

Since
0.9.0

fun <T : File> <ERROR CLASS><T>.asPath(assertionCreator: <ERROR CLASS><Path>.() -> Unit): <ERROR CLASS><T>

Expects that the subject of the assertion holds all assertions the given assertionCreator creates for the subject as Path.

The transformation as such is not reflected in reporting. Use feature(File::toPath, assertionCreator) if you want to show the transformation in reporting.

Return
An Expect for the current subject of the assertion.

Since
0.9.0