ClassesShouldPackageAssertions

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 inModule(modulePath: String): ClassesRuleBuilder

Asserts that selected classes reside in a module matching the specified path.

open infix fun inModule(modulePaths: List<String>): ClassesRuleBuilder
open fun inModule(vararg modulePaths: String): ClassesRuleBuilder

Asserts that selected classes reside in any module matching the specified paths.

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

Asserts that selected classes reside in any module matching the specified paths.

Link copied to clipboard
open infix fun inPackage(predicate: (String) -> Boolean): ClassesRuleBuilder
open fun inPackage(description: String, predicate: (String) -> Boolean): ClassesRuleBuilder

Asserts that selected classes reside in packages matching the specified predicate.

open infix fun inPackage(packagePattern: String): ClassesRuleBuilder

Asserts that selected classes reside in packages matching the specified pattern. Supports .. segment wildcards.

open infix fun inPackage(packagePatterns: List<String>): ClassesRuleBuilder
open fun inPackage(vararg packagePatterns: String): ClassesRuleBuilder

Asserts that selected classes reside in packages matching any of the specified patterns. Supports .. segment wildcards.

Link copied to clipboard
open infix fun inPackageOf(type: KClass<*>): ClassesRuleBuilder

Asserts that selected classes reside in the package of the specified type.

Link copied to clipboard
open infix fun named(predicate: (String) -> Boolean): ClassesRuleBuilder
open fun named(description: String, predicate: (String) -> Boolean): ClassesRuleBuilder

Asserts that selected classes have simple names matching the specified predicate.

open infix fun named(name: String): ClassesRuleBuilder
open infix fun named(names: List<String>): ClassesRuleBuilder
open fun named(vararg names: String): ClassesRuleBuilder

Filter or assertion criteria for named.

Link copied to clipboard
open infix fun nameEndsWith(suffix: String): ClassesRuleBuilder

Asserts that selected classes have simple names ending with the specified suffix.

open infix fun nameEndsWith(suffixes: List<String>): ClassesRuleBuilder
open fun nameEndsWith(vararg suffixes: String): ClassesRuleBuilder

Asserts that selected classes have simple names ending with any of the specified suffixes.

Link copied to clipboard
open infix fun nameMatches(pattern: String): ClassesRuleBuilder

Asserts that selected classes have simple names matching the specified glob pattern. Supports '*' wildcards.

open infix fun nameMatches(patterns: List<String>): ClassesRuleBuilder
open fun nameMatches(vararg patterns: String): ClassesRuleBuilder

Asserts that selected classes have simple names matching any of the specified glob patterns. Supports '*' wildcards.

Link copied to clipboard
open infix fun nameStartsWith(prefix: String): ClassesRuleBuilder

Asserts that selected classes have simple names starting with the specified prefix.

open infix fun nameStartsWith(prefixes: List<String>): ClassesRuleBuilder
open fun nameStartsWith(vararg prefixes: String): ClassesRuleBuilder

Asserts that selected classes have simple names starting with any of the specified prefixes.

Link copied to clipboard
open infix fun notInModule(modulePath: String): ClassesRuleBuilder

Asserts that selected classes do not reside in a module matching the specified path.

open infix fun notInModule(modulePaths: List<String>): ClassesRuleBuilder
open fun notInModule(vararg modulePaths: String): ClassesRuleBuilder

Asserts that selected classes do not reside in any module matching the specified paths.

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

Asserts that selected classes do not reside in any module matching the specified paths.

Link copied to clipboard
open infix fun notInPackage(packagePattern: String): ClassesRuleBuilder

Asserts that selected classes do not reside in packages matching the specified pattern. Supports .. segment wildcards.

open infix fun notInPackage(packagePatterns: List<String>): ClassesRuleBuilder
open fun notInPackage(vararg packagePatterns: String): ClassesRuleBuilder

Asserts that selected classes do not reside in packages matching any of the specified patterns. Supports .. segment wildcards.

Link copied to clipboard
open infix fun notNamed(name: String): ClassesRuleBuilder
open infix fun notNamed(names: List<String>): ClassesRuleBuilder
open fun notNamed(vararg names: String): ClassesRuleBuilder

Filter or assertion criteria for not named.

Link copied to clipboard
open infix fun notNameEndsWith(suffix: String): ClassesRuleBuilder
open infix fun notNameEndsWith(suffixes: List<String>): ClassesRuleBuilder
open fun notNameEndsWith(vararg suffixes: String): ClassesRuleBuilder

Filter or assertion criteria for not name ends with.

Link copied to clipboard
open infix fun notNameMatches(pattern: String): ClassesRuleBuilder
open infix fun notNameMatches(patterns: List<String>): ClassesRuleBuilder
open fun notNameMatches(vararg patterns: String): ClassesRuleBuilder

Filter or assertion criteria for not name matches.

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

Filter or assertion criteria for not name starts with.

Link copied to clipboard
open infix fun simpleNamed(name: String): ClassesRuleBuilder

Filter or assertion criteria for simple named.