abstract class ContainsAssertionCreator<T : Any, S, C : Contains.Checker> : Contains.Creator<T, S>
Represents the base class for Contains.Creators, providing a template to fulfill its job.
T
- The type of the AssertionPlant.subject.
S
- The type of the search criteria.
C
- The type of the checkers in use (typically a sub interface of Contains.Checker).
ContainsAssertionCreator(checkers: List<C>)
Represents the base class for Contains.Creators, providing a template to fulfill its job. |
fun createAssertionGroup(subjectProvider: SubjectProvider<T>, searchCriteria: List<S>): AssertionGroup
Creates an AssertionGroup representing the sophisticated fun createAssertionGroup(subjectProvider: SubjectProvider<T>, searchCriterion: S, otherSearchCriteria: Array<out S>): AssertionGroup |
|
abstract fun createAssertionGroupForSearchCriteriaAssertions(assertions: List<Assertion>): AssertionGroup
Creates an AssertionGroup representing the sophisticated |
|
abstract fun searchAndCreateAssertion(subjectProvider: SubjectProvider<T>, searchCriterion: S, featureFactory: (numberOfOccurrences: Int, description: Translatable) -> AssertionGroup): AssertionGroup
Searches for something fulfilling the given searchCriterion in the given subjectProvider's subject and should pass on the number of occurrences to the given featureFactory which creates feature assertions based on the checkers, which in turn can be used to create a resulting AssertionGroup representing the assertion for a search criteria as a whole. |
abstract class
Represents the base class for Contains.Creators which use bare objects as search criteria (matching them
with |
|
open class
Represents a creator of a sophisticated |