atrium-api-infix
Provides an expectation function API in English in an infix 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 o
and offer all available functions. For instance: Expect<IterableLik> toContain o inGiven order and only grouped entries within group inAny order(...)
Provides an expectation function API in English in an infix 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 o
and offer all available functions. For instance: Expect<IterableLik> toContain o inGiven order and only grouped entries within group inAny order(...)