ClassesShould
Fluent API for defining assertion rules on Kotlin classes.
Functions
Asserts that all member functions in selected classes satisfy the assertions specified in the block.
Asserts that all of the nested assertion blocks are satisfied.
Asserts that all member properties in selected classes satisfy the assertions specified in the block.
Asserts that at least one of the nested assertion blocks is satisfied.
Asserts that selected classes are abstract classes.
Asserts that selected classes extend or implement specified supertype.
Asserts that selected classes are assignable to all of the specified supertypes.
Asserts that selected classes are assignable to specified supertype.
Asserts that selected classes are assignable to any of the specified supertypes.
Asserts that selected classes are assignable to specified supertype.
Asserts that selected classes are data classes.
Asserts that selected classes have KDoc documentation.
Asserts that selected classes are enum classes.
Asserts that selected classes are inline/value classes.
Asserts that selected classes are interface definitions.
Asserts that selected classes are sealed.
Asserts that selected classes are annotated with all of the specified annotations.
Asserts that selected classes are annotated with the specified annotation. Matches either simple names or FQNs.
Asserts that selected classes have the specified modifier.
Asserts that selected classes have all of the specified modifiers.
Asserts that selected classes are annotated with the specified annotation. Matches either the annotation's simple name or its FQN.
Asserts that selected classes have the specified annotation with a matching argument name and value.
Asserts that selected classes are annotated with any of the specified annotations.
Asserts that selected classes are annotated with the specified annotation. Matches either simple names or FQNs.
Asserts that selected classes have the specified modifier.
Asserts that selected classes have at least one of the specified modifiers.
Asserts that selected classes have specified visibility.
Asserts that selected classes have any of the specified visibilities.
Asserts that selected classes have specified modifier.
Asserts that selected classes have simple names matching the specified predicate.
Asserts that selected classes have simple names ending with any of the specified suffixes.
Asserts that selected classes have simple names ending with the specified suffix.
Asserts that selected classes have simple names matching any of the specified glob patterns. Supports '*' wildcards.
Asserts that selected classes have simple names matching the specified glob pattern. Supports '*' wildcards.
Asserts that selected classes have simple names starting with any of the specified prefixes.
Asserts that selected classes have simple names starting with the specified prefix.
Asserts that selected classes have specified visibility.
Asserts that none of the nested assertion blocks are satisfied.
Asserts that selected classes do not depend on classes residing in packages matching the specified patterns.
Asserts that selected classes do not depend on classes residing in packages matching the specified pattern.
Asserts that selected classes do not expose types annotated with the specified annotations in their property, function return, or parameter signatures.
Asserts that selected classes do not expose types annotated with the specified annotation in their property, function return, or parameter signatures.
Asserts that selected classes do not expose types annotated with any of the specified annotations in their property, function return, or parameter signatures.
Asserts that selected classes are accessed only by classes residing in packages matching the specified patterns.
Asserts that selected classes are accessed only by classes residing in packages matching the specified pattern.
Asserts that selected classes depend only on classes residing in packages matching the specified patterns.
Asserts that selected classes depend only on classes residing in packages matching the specified pattern.
Asserts that selected classes reside in packages matching any of the specified patterns. Supports .. segment wildcards.
Asserts that selected classes reside in packages matching the specified predicate.
Asserts that selected classes reside in packages matching the specified pattern. Supports .. segment wildcards.
Asserts that selected classes satisfy a custom condition.
Satisfies an arbitrary custom assertion logic with custom violations builder.