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

Package ch.tutteli.atrium.api.fluent.en_GB.jdk8

Properties

day

val <T : LocalDate> <ERROR CLASS><T>.day: <ERROR CLASS><Int>

Creates an Expect for the property LocalDate.dayOfMonth of the subject of the assertion, so that further fluent calls are assertions about it.

dayOfWeek

val <T : LocalDate> <ERROR CLASS><T>.dayOfWeek: <ERROR CLASS><DayOfWeek>

Creates an Expect for the property LocalDate.getDayOfWeek of the subject of the assertion, so that further fluent calls are assertions about it.

extension

val <T : Path> <ERROR CLASS><T>.extension: <ERROR CLASS><String>

Creates an Expect for the property Path.extension (provided via niok) of the subject of the assertion, so that further fluent calls are assertions about it.

fileName

val <T : Path> <ERROR CLASS><T>.fileName: <ERROR CLASS><String>

Creates an Expect for the property Path.fileNameAsString (provided via niok) of the subject of the assertion, so that further fluent calls are assertions about it.

fileNameWithoutExtension

val <T : Path> <ERROR CLASS><T>.fileNameWithoutExtension: <ERROR CLASS><String>

Creates an Expect for the property Path.fileNameWithoutExtension (provided via niok) of the subject of the assertion, so that further fluent calls are assertions about it.

month

val <T : LocalDate> <ERROR CLASS><T>.month: <ERROR CLASS><Int>

Creates an Expect for the property LocalDate.monthValue of the subject of the assertion, so that further fluent calls are assertions about it.

parent

val <T : Path> <ERROR CLASS><T>.parent: <ERROR CLASS><Path>

Expects that this Path has a parent and creates an Expect for it, so that further fluent calls are assertions about it.

year

val <T : LocalDate> <ERROR CLASS><T>.year: <ERROR CLASS><Int>

Creates an Expect for the property LocalDate.year of the subject of the assertion, so that further fluent calls are assertions about it.

Functions

asPath

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

Turns Expect<File> into Expect<Path>.

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.

day

fun <T : LocalDate> <ERROR CLASS><T>.day(assertionCreator: <ERROR CLASS><Int>.() -> Unit): <ERROR CLASS><T>

Expects that the property LocalDate.dayOfMonth of the subject of the assertion holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.

dayOfWeek

fun <T : LocalDate> <ERROR CLASS><T>.dayOfWeek(assertionCreator: <ERROR CLASS><DayOfWeek>.() -> Unit): <ERROR CLASS><T>

Expects that the property LocalDate.getDayOfWeek of the subject of the assertion holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.

endsNotWith

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

Expects that the subject of the assertion (a Path) does not end with the expected Path;

endsWith

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

Expects that the subject of the assertion (a Path) ends with the expected Path.

exists

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

Expects that the subject of the assertion (a Path) exists; meaning that there is a file system entry at the location the Path points to.

existsNot

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

Expects that the subject of the assertion (a Path) does not exist; meaning that there is no file system entry at the location the Path points to.

extension

fun <T : Path> <ERROR CLASS><T>.extension(assertionCreator: <ERROR CLASS><String>.() -> Unit): <ERROR CLASS><T>

Expects that the property Path.extension (provided via niok) of the subject of the assertion holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.

fileName

fun <T : Path> <ERROR CLASS><T>.fileName(assertionCreator: <ERROR CLASS><String>.() -> Unit): <ERROR CLASS><T>

Expects that the property Path.fileNameAsString (provided via niok) of the subject of the assertion holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.

fileNameWithoutExtension

fun <T : Path> <ERROR CLASS><T>.fileNameWithoutExtension(assertionCreator: <ERROR CLASS><String>.() -> Unit): <ERROR CLASS><T>

Expects that the property Path.fileNameWithoutExtension (provided via niok) of the subject of the assertion holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.

isAfter

fun <T : ChronoLocalDate> <ERROR CLASS><T>.isAfter(expected: ChronoLocalDate): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDate) is after the expected.

fun <T : ChronoLocalDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isAfter(expected: ChronoLocalDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDateTime) is after the expected.

fun <T : ChronoZonedDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isAfter(expected: ChronoZonedDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoZonedDateTime) is after the expected.

isAfterOrEqual

fun <T : ChronoLocalDate> <ERROR CLASS><T>.isAfterOrEqual(expected: ChronoLocalDate): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDate) is after or equal the expected.

fun <T : ChronoLocalDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isAfterOrEqual(expected: ChronoLocalDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDateTime) is after or equal the expected.

fun <T : ChronoZonedDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isAfterOrEqual(expected: ChronoZonedDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoZonedDateTime) is after or equal the expected.

isBefore

fun <T : ChronoLocalDate> <ERROR CLASS><T>.isBefore(expected: ChronoLocalDate): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDate) is before the expected.

fun <T : ChronoLocalDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isBefore(expected: ChronoLocalDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDateTime) is before the expected.

fun <T : ChronoZonedDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isBefore(expected: ChronoZonedDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoZonedDateTime) is before the expected.

isBeforeOrEqual

fun <T : ChronoLocalDate> <ERROR CLASS><T>.isBeforeOrEqual(expected: ChronoLocalDate): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDate) is before or equal the expected.

fun <T : ChronoLocalDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isBeforeOrEqual(expected: ChronoLocalDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDateTime) is before or equal the expected.

fun <T : ChronoZonedDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isBeforeOrEqual(expected: ChronoZonedDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoZonedDateTime) is before or equals the expected.

isDirectory

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

Expects that the subject of the assertion (a Path) is a directory; meaning that there is a file system entry at the location the Path points to and that is a directory.

isEmpty

fun <T : Optional<*>> <ERROR CLASS><T>.isEmpty(): <ERROR CLASS><T>

Expects that the subject of the assertion (an Optional) is empty (not present).

isEqual

fun <T : ChronoLocalDate> <ERROR CLASS><T>.isEqual(expected: ChronoLocalDate): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDate) is equal to the expected.

fun <T : ChronoLocalDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isEqual(expected: ChronoLocalDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoLocalDateTime) is equal to the expected.

fun <T : ChronoZonedDateTime<out ChronoLocalDate>> <ERROR CLASS><T>.isEqual(expected: ChronoZonedDateTime<*>): <ERROR CLASS><T>

Expects that the subject of the assertion (a ChronoZonedDateTime) is equal to the expected.

isPresent

fun <E, T : Optional<E>> <ERROR CLASS><T>.isPresent(): <ERROR CLASS><E>

Expects that the subject of the assertion (an Optional) is present and returns an Expect for the inner type E.

fun <E, T : Optional<E>> <ERROR CLASS><T>.isPresent(assertionCreator: <ERROR CLASS><E>.() -> Unit): <ERROR CLASS><T>

Expects that the subject of the assertion (an Optional) is present and that it holds all assertions the given assertionCreator creates.

isReadable

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

Expects that the subject of the assertion (a Path) is readable; meaning that there is a file system entry at the location the Path points to and that the current thread has the permission to read from it.

isRegularFile

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

Expects that the subject of the assertion (a Path) is a file; meaning that there is a file system entry at the location the Path points to and that is a regular file.

isWritable

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

Expects that the subject of the assertion (a Path) is writable; meaning that there is a file system entry at the location the Path points to and that the current thread has the permission to write to it.

month

fun <T : LocalDate> <ERROR CLASS><T>.month(assertionCreator: <ERROR CLASS><Int>.() -> Unit): <ERROR CLASS><T>

Expects that the property LocalDate.monthValue of the subject of the assertion holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.

parent

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

Expects that this Path has a parent and that the parent holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.

resolve

fun <T : Path> <ERROR CLASS><T>.resolve(other: String): <ERROR CLASS><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.

fun <T : Path> <ERROR CLASS><T>.resolve(other: String, assertionCreator: <ERROR CLASS><Path>.() -> Unit): <ERROR CLASS><T>

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

startsNotWith

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

Expects that the subject of the assertion (a Path) does not start with the expected.

startsWith

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

Expects that the subject of the assertion (a Path) starts with the expected.

year

fun <T : LocalDate> <ERROR CLASS><T>.year(assertionCreator: <ERROR CLASS><Int>.() -> Unit): <ERROR CLASS><T>

Expects that the property LocalDate.yearof the subject of the assertion holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of the assertion.