atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / PathAssertionsBuilder

PathAssertionsBuilder

object PathAssertionsBuilder (source)

Delegates inter alia to the implementation of PathAssertions. In detail, it implements PathAssertions by delegating to pathAssertions which in turn delegates to the implementation via loadSingleService.

Functions

endsNotWith

fun <T : Path> endsNotWith(expect: <ERROR CLASS><T>, expected: Path): <ERROR CLASS>

endsWith

fun <T : Path> endsWith(expect: <ERROR CLASS><T>, expected: Path): <ERROR CLASS>

exists

fun <T : Path> exists(expect: <ERROR CLASS><T>): <ERROR CLASS>

existsNot

fun <T : Path> existsNot(expect: <ERROR CLASS><T>): <ERROR CLASS>

extension

fun <T : Path> extension(expect: <ERROR CLASS><T>): <ERROR CLASS>

fileName

fun <T : Path> fileName(expect: <ERROR CLASS><T>): <ERROR CLASS>

fileNameWithoutExtension

fun <T : Path> fileNameWithoutExtension(expect: <ERROR CLASS><T>): <ERROR CLASS>

hasSameBinaryContentAs

fun <T : Path> hasSameBinaryContentAs(expect: <ERROR CLASS><T>, targetPath: Path): <ERROR CLASS>

hasSameTextualContentAs

fun <T : Path> hasSameTextualContentAs(expect: <ERROR CLASS><T>, targetPath: Path, sourceCharset: Charset, targetCharset: Charset): <ERROR CLASS>

isDirectory

fun <T : Path> isDirectory(expect: <ERROR CLASS><T>): <ERROR CLASS>

isReadable

fun <T : Path> isReadable(expect: <ERROR CLASS><T>): <ERROR CLASS>

isRegularFile

fun <T : Path> isRegularFile(expect: <ERROR CLASS><T>): <ERROR CLASS>

isWritable

fun <T : Path> isWritable(expect: <ERROR CLASS><T>): <ERROR CLASS>

parent

fun <T : Path> parent(expect: <ERROR CLASS><T>): <ERROR CLASS>

resolve

fun <T : Path> resolve(expect: <ERROR CLASS><T>, other: String): <ERROR CLASS>

startsNotWith

fun <T : Path> startsNotWith(expect: <ERROR CLASS><T>, expected: Path): <ERROR CLASS>

startsWith

fun <T : Path> startsWith(expect: <ERROR CLASS><T>, expected: Path): <ERROR CLASS>

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.