ClassSelectorShould

Fluent assertion receiver for sequential assertions on a ClassSelector.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Asserts that all classes in the selector are abstract classes or interfaces.

Link copied to clipboard
fun beAccessedBy(vararg packagePatterns: String)

Asserts that classes in the selector are only accessed by packages matching the specified patterns.

Link copied to clipboard
fun beAssignableTo(vararg superTypes: String)

Asserts that all classes in the selector extend or implement any of the specified supertypes.

Link copied to clipboard
fun beData()

Asserts that all classes in the selector are data classes.

Link copied to clipboard
fun beEnums()

Asserts that all classes in the selector are enum classes.

Link copied to clipboard
fun beInline()

Asserts that all classes in the selector are inline/value classes.

Link copied to clipboard

Asserts that all classes in the selector are interfaces.

Link copied to clipboard

Asserts that all classes in the selector are internal.

Link copied to clipboard
fun bePrivate()

Asserts that all classes in the selector are private.

Link copied to clipboard

Asserts that all classes in the selector are protected.

Link copied to clipboard
fun bePublic()

Asserts that all classes in the selector are public.

Link copied to clipboard
fun beSealed()

Asserts that all classes in the selector are sealed classes.

Link copied to clipboard
fun haveAnnotationOf(vararg annotations: String)

Asserts that all classes in the selector have any of the specified annotations.

Link copied to clipboard
fun haveNameEndingWith(vararg suffixes: String)

Asserts that all classes in the selector have names ending with any of the specified suffixes.

Link copied to clipboard
fun haveNameMatching(vararg patterns: String)

Asserts that all classes in the selector have names matching any of the specified glob patterns.

Link copied to clipboard
fun haveNameStartingWith(vararg prefixes: String)

Asserts that all classes in the selector have names starting with any of the specified prefixes.

Link copied to clipboard
fun haveVisibility(visibility: Visibility)

Asserts that all classes in the selector have the specified visibility.

Link copied to clipboard
fun notBeAccessedByAnyPackage(vararg packagePatterns: String)

Asserts that classes in the selector are not accessed by packages matching the specified patterns.

Link copied to clipboard
fun notDependOnPackages(vararg packagePatterns: String)

Asserts that all classes in the selector do not depend on classes in packages matching any of the specified patterns.

Link copied to clipboard
fun onlyBeAccessedByAnyPackage(vararg packagePatterns: String)

Asserts that classes in the selector are only accessed by packages matching the specified patterns.

Link copied to clipboard
fun onlyDependOnPackages(vararg packagePatterns: String)

Asserts that all classes in the selector depend only on classes in packages matching any of the specified patterns.

Link copied to clipboard
fun resideInAPackage(vararg packagePatterns: String)

Asserts that all classes in the selector reside in packages matching any of the specified patterns.