doc / ch.tutteli.atrium.domain.creating / PathAssertions

PathAssertions

interface PathAssertions
Deprecated: Use PathAssertions from atrium-logic; will be removed with 1.0.0

Defines the minimum set of assertion functions and builders applicable to Path, which an implementation of the domain of Atrium has to provide.

Functions

endsNotWith

abstract fun <T : Path> endsNotWith(expect: Expect<T>, expected: Path): Assertion

endsWith

abstract fun <T : Path> endsWith(expect: Expect<T>, expected: Path): Assertion

exists

abstract fun <T : Path> exists(expect: Expect<T>): Assertion

existsNot

abstract fun <T : Path> existsNot(expect: Expect<T>): Assertion

extension

abstract fun <T : Path> extension(expect: Expect<T>): ExtractedFeaturePostStep<T, String>

fileName

abstract fun <T : Path> fileName(expect: Expect<T>): ExtractedFeaturePostStep<T, String>

fileNameWithoutExtension

abstract fun <T : Path> fileNameWithoutExtension(expect: Expect<T>): ExtractedFeaturePostStep<T, String>

hasSameBinaryContentAs

abstract fun <T : Path> hasSameBinaryContentAs(expect: Expect<T>, targetPath: Path): Assertion

hasSameTextualContentAs

abstract fun <T : Path> hasSameTextualContentAs(expect: Expect<T>, targetPath: Path, sourceCharset: Charset, targetCharset: Charset): Assertion

isDirectory

abstract fun <T : Path> isDirectory(expect: Expect<T>): Assertion

isReadable

abstract fun <T : Path> isReadable(expect: Expect<T>): Assertion

isRegularFile

abstract fun <T : Path> isRegularFile(expect: Expect<T>): Assertion

isWritable

abstract fun <T : Path> isWritable(expect: Expect<T>): Assertion

parent

abstract fun <T : Path> parent(expect: Expect<T>): ExtractedFeaturePostStep<T, Path>

resolve

abstract fun <T : Path> resolve(expect: Expect<T>, other: String): ExtractedFeaturePostStep<T, Path>

startsNotWith

abstract fun <T : Path> startsNotWith(expect: Expect<T>, expected: Path): Assertion

startsWith

abstract fun <T : Path> startsWith(expect: Expect<T>, expected: Path): Assertion

Inheritors

PathAssertionsBuilder

object PathAssertionsBuilder : PathAssertions

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.