atrium-api-fluent

Provides an expectation function API in a pure fluent style.

The main focus of this API's design is put on ease of use/compatibility with code completion functionality of an IDE.

Every expectation function starts with to.., feature extractors such as Expect<List<...>>.get(...) do not start with to.. where mixtures of feature extractor and expectation function such as toThrow are exceptions.

Expectation functions which you use often, will usually have a shortcut function, right at the fingertips after the expectation verb (e.g. Expect<IterableLike>.toContainExactly(...)) whereas functionality which are not that often use are behind a sophisticated builder such as Expect<IterableLike>.toContain and offer all available functions. For instance: Expect<IterableLik>.toContain.inOrder.only.grouped.within.inAnyOrder(...)

Provides an expectation function API in a pure fluent style.

The main focus of this API's design is put on ease of use/compatibility with code completion functionality of an IDE.

Every expectation function starts with to.., feature extractors such as Expect<List<...>>.get(...) do not start with to.. where mixtures of feature extractor and expectation function such as toThrow are exceptions.

Expectation functions which you use often, will usually have a shortcut function, right at the fingertips after the expectation verb (e.g. Expect<IterableLike>.toContainExactly(...)) whereas functionality which are not that often use are behind a sophisticated builder such as Expect<IterableLike>.toContain and offer all available functions. For instance: Expect<IterableLik>.toContain.inOrder.only.grouped.within.inAnyOrder(...)

Packages

Link copied to clipboard
common

Contains the API which provides a pure fluent API in English and which has its design focus on usability in conjunction with code completion.

common

Contains helper classes/functions etc. in conjunction with feature extractors.