ClassesShouldMetadataAssertions

Fluent API for defining assertion rules on Kotlin classes.

Inheritors

Properties

Link copied to clipboard

Filter or assertion criteria for builder.

Functions

Link copied to clipboard
open infix fun annotatedWith(annotationFqName: String): ClassesRuleBuilder

Asserts that selected classes are annotated with the specified annotation. Matches either the annotation's simple name or its FQN.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Asserts that selected classes are abstract classes.

Link copied to clipboard
open infix fun beAssignableFrom(subType: String): ClassesRuleBuilder

Asserts that selected classes are assignable from the specified subtype.

Link copied to clipboard
open infix fun beAssignableTo(superType: String): ClassesRuleBuilder

Asserts that selected classes extend or implement specified supertype.

Link copied to clipboard
open fun beAssignableToAllOf(vararg superTypes: String): ClassesRuleBuilder
open infix fun beAssignableToAllOf(superTypes: List<String>): ClassesRuleBuilder

Asserts that selected classes are assignable to all of the specified supertypes.

open infix fun beAssignableToAllOf(superType: String): ClassesRuleBuilder

Asserts that selected classes are assignable to specified supertype.

Link copied to clipboard
open fun beAssignableToAnyOf(vararg superTypes: String): ClassesRuleBuilder
open infix fun beAssignableToAnyOf(superTypes: List<String>): ClassesRuleBuilder

Asserts that selected classes are assignable to any of the specified supertypes.

open infix fun beAssignableToAnyOf(superType: String): ClassesRuleBuilder

Asserts that selected classes are assignable to specified supertype.

Link copied to clipboard

Asserts that selected classes are data classes.

Link copied to clipboard

Asserts that selected classes are enum classes.

Link copied to clipboard

Asserts that selected classes are inline/value classes.

Link copied to clipboard

Asserts that selected classes are inner classes.

Link copied to clipboard

Asserts that selected classes are interface definitions.

Link copied to clipboard

Filter or assertion criteria for be internal.

Link copied to clipboard

Asserts that selected classes are nested classes.

Link copied to clipboard

Asserts that selected classes are open classes.

Link copied to clipboard

Filter or assertion criteria for be private.

Link copied to clipboard

Filter or assertion criteria for be protected.

Link copied to clipboard

Filter or assertion criteria for be public.

Link copied to clipboard

Asserts that selected classes are sealed.

Link copied to clipboard

Asserts that selected classes are top-level classes.

Link copied to clipboard
open fun containFunction(vararg functionNames: String): ClassesRuleBuilder
open infix fun containFunction(functionName: String): ClassesRuleBuilder
open infix fun containFunction(functionNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for contain function.

Link copied to clipboard
open fun containFunctions(vararg functionNames: String): ClassesRuleBuilder
open infix fun containFunctions(functionNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for contain functions.

Link copied to clipboard
open fun containProperties(vararg propertyNames: String): ClassesRuleBuilder
open infix fun containProperties(propertyNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for contain properties.

Link copied to clipboard
open fun containProperty(vararg propertyNames: String): ClassesRuleBuilder
open infix fun containProperty(propertyName: String): ClassesRuleBuilder
open infix fun containProperty(propertyNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for contain property.

Link copied to clipboard
open infix fun haveAllModifiers(modifier: Modifier): ClassesRuleBuilder

Asserts that selected classes have the specified modifier.

open fun haveAllModifiers(vararg modifiers: Modifier): ClassesRuleBuilder
open infix fun haveAllModifiers(modifiers: List<Modifier>): ClassesRuleBuilder

Asserts that selected classes have all of the specified modifiers.

Link copied to clipboard
open fun haveAnnotationWithArgument(annotationName: String, argName: String?, argValue: String): ClassesRuleBuilder

Asserts that selected classes have the specified annotation with a matching argument name and value.

Link copied to clipboard
open infix fun haveAnyModifier(modifier: Modifier): ClassesRuleBuilder

Asserts that selected classes have the specified modifier.

open fun haveAnyModifier(vararg modifiers: Modifier): ClassesRuleBuilder
open infix fun haveAnyModifier(modifiers: List<Modifier>): ClassesRuleBuilder

Asserts that selected classes have at least one of the specified modifiers.

Link copied to clipboard
open infix fun haveAnyVisibility(visibility: Visibility): ClassesRuleBuilder

Asserts that selected classes have specified visibility.

open fun haveAnyVisibility(vararg visibilities: Visibility): ClassesRuleBuilder
open infix fun haveAnyVisibility(visibilities: List<Visibility>): ClassesRuleBuilder

Asserts that selected classes have any of the specified visibilities.

Link copied to clipboard
open infix fun haveModifier(modifier: Modifier): ClassesRuleBuilder

Asserts that selected classes have specified modifier.

Link copied to clipboard
open infix fun haveVisibility(visibility: Visibility): ClassesRuleBuilder

Asserts that selected classes have specified visibility.

Link copied to clipboard

Filter or assertion criteria for not be abstract.

Link copied to clipboard

Filter or assertion criteria for not be data.

Link copied to clipboard

Filter or assertion criteria for not be inline.

Link copied to clipboard

Filter or assertion criteria for not be inner.

Link copied to clipboard

Filter or assertion criteria for not be interface.

Link copied to clipboard

Filter or assertion criteria for not be open.

Link copied to clipboard

Filter or assertion criteria for not be sealed.

Link copied to clipboard
open fun notContainFunction(vararg functionNames: String): ClassesRuleBuilder
open infix fun notContainFunction(functionName: String): ClassesRuleBuilder
open infix fun notContainFunction(functionNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for not contain function.

Link copied to clipboard
open fun notContainFunctions(vararg functionNames: String): ClassesRuleBuilder
open infix fun notContainFunctions(functionNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for not contain functions.

Link copied to clipboard
open fun notContainProperties(vararg propertyNames: String): ClassesRuleBuilder
open infix fun notContainProperties(propertyNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for not contain properties.

Link copied to clipboard
open fun notContainProperty(vararg propertyNames: String): ClassesRuleBuilder
open infix fun notContainProperty(propertyName: String): ClassesRuleBuilder
open infix fun notContainProperty(propertyNames: List<String>): ClassesRuleBuilder

Filter or assertion criteria for not contain property.

Link copied to clipboard
open infix fun notHaveModifier(modifier: Modifier): ClassesRuleBuilder

Filter or assertion criteria for not have modifier.