doc / ch.tutteli.atrium.api.infix.en_GB / resolve

resolve

infix fun <T : Path> Expect<T>.resolve(other: String): Expect<Path>

Expects that other resolves against this Path and creates an Expect for the resolved Path so that further fluent calls are assertions about it.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
The newly created Expect for the extracted feature.

Since
0.12.0

infix fun <T : Path> Expect<T>.resolve(path: PathWithCreator<Path>): Expect<T>

Expects that PathWithCreator.path resolves against this Path, that the resolved Path holds all assertions the given PathWithCreator.assertionCreator creates for it and returns an Expect for the current subject of the assertion.

Use the function path(String) { ... } to create a PathWithCreator.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
The newly created Expect for the extracted feature.

Since
0.12.0