doc / ch.tutteli.atrium.creating

Package ch.tutteli.atrium.creating

Everything involved in creating IAssertion.

Types

AssertionCollector

object AssertionCollector

IAssertionPlant

interface IAssertionPlant<out T : Any> : IBaseAssertionPlant<T, IAssertionPlant<T>>

Represents a plant for IAssertions based on a non nullable subject.

IAssertionPlantNullable

interface IAssertionPlantNullable<out T> : IBaseAssertionPlant<T, IAssertionPlantNullable<T>>

Represents an assertion plant for nullable types.

IAssertionPlantWithCommonFields

interface IAssertionPlantWithCommonFields<out T>

An assertion plant which has CommonFields.

IBaseAssertionPlant

interface IBaseAssertionPlant<out T, out A : IBaseAssertionPlant<T, A>>

Represents a plant for IAssertions and offers methods to create and to add assertions to this plant.

IBaseReportingAssertionPlant

interface IBaseReportingAssertionPlant<out T, out A : IBaseAssertionPlant<T, A>> : IBaseAssertionPlant<T, A>, IAssertionPlantWithCommonFields<T>

ICheckingAssertionPlant

interface ICheckingAssertionPlant<out T : Any> : IAssertionPlant<T>

Represents a plant for IAssertions and offers the possibility to check whether allAssertionsHold which have been added to this plant (since the last check).

ICollectingAssertionPlant

interface ICollectingAssertionPlant<out T : Any> : IAssertionPlant<T>

Represents an IAssertionPlant which is intended to serve as receiver object for lambdas which create IAssertions, in which this assertion plant collects the so created assertions.

IReportingAssertionPlant

interface IReportingAssertionPlant<out T : Any> : IAssertionPlant<T>, IBaseReportingAssertionPlant<T, IAssertionPlant<T>>

Represents a plant for IAssertions and offers the possibility to check all the added assertions which includes error reporting.

IReportingAssertionPlantNullable

interface IReportingAssertionPlantNullable<out T> : IAssertionPlantNullable<T>, IBaseReportingAssertionPlant<T, IAssertionPlantNullable<T>>

Exceptions

PlantHasNoSubjectException

class PlantHasNoSubjectException : RuntimeException

Represents the Exception that an IAssertionPlant.subject was not defined but one tried to access it.