doc / ch.tutteli.atrium.logic / PathAssertions

PathAssertions

interface PathAssertions

Collection of assertion functions and builders which are applicable to subjects with a Path type.

Functions

endsNotWith

abstract fun <T : Path> endsNotWith(container: AssertionContainer<T>, expected: Path): Assertion

endsWith

abstract fun <T : Path> endsWith(container: AssertionContainer<T>, expected: Path): Assertion

exists

abstract fun <T : Path> exists(container: AssertionContainer<T>, linkOption: LinkOption? = null): Assertion

existsNot

abstract fun <T : Path> existsNot(container: AssertionContainer<T>, linkOption: LinkOption? = null): Assertion

extension

abstract fun <T : Path> extension(container: AssertionContainer<T>): FeatureExtractorBuilder.ExecutionStep<T, String>

fileName

abstract fun <T : Path> fileName(container: AssertionContainer<T>): FeatureExtractorBuilder.ExecutionStep<T, String>

fileNameWithoutExtension

abstract fun <T : Path> fileNameWithoutExtension(container: AssertionContainer<T>): FeatureExtractorBuilder.ExecutionStep<T, String>

hasDirectoryEntry

abstract fun <T : Path> hasDirectoryEntry(container: AssertionContainer<T>, entries: List<String>): Assertion

hasSameBinaryContentAs

abstract fun <T : Path> hasSameBinaryContentAs(container: AssertionContainer<T>, targetPath: Path): Assertion

hasSameTextualContentAs

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

isAbsolute

abstract fun <T : Path> isAbsolute(container: AssertionContainer<T>): Assertion

isDirectory

abstract fun <T : Path> isDirectory(container: AssertionContainer<T>): Assertion

isExecutable

abstract fun <T : Path> isExecutable(container: AssertionContainer<T>): Assertion

isReadable

abstract fun <T : Path> isReadable(container: AssertionContainer<T>): Assertion

isRegularFile

abstract fun <T : Path> isRegularFile(container: AssertionContainer<T>): Assertion

isRelative

abstract fun <T : Path> isRelative(container: AssertionContainer<T>): Assertion

isWritable

abstract fun <T : Path> isWritable(container: AssertionContainer<T>): Assertion

parent

abstract fun <T : Path> parent(container: AssertionContainer<T>): FeatureExtractorBuilder.ExecutionStep<T, Path>

resolve

abstract fun <T : Path> resolve(container: AssertionContainer<T>, other: String): FeatureExtractorBuilder.ExecutionStep<T, Path>

startsNotWith

abstract fun <T : Path> startsNotWith(container: AssertionContainer<T>, expected: Path): Assertion

startsWith

abstract fun <T : Path> startsWith(container: AssertionContainer<T>, expected: Path): Assertion

Inheritors

DefaultPathAssertions

class DefaultPathAssertions : PathAssertions