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 fun inModule(vararg modulePaths: String): ClassesRuleBuilder
open infix fun inModule(modulePaths: List<String>): ClassesRuleBuilder

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

open infix fun inModule(modulePath: String): ClassesRuleBuilder

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

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

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

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

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

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.

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 fun named(vararg names: String): ClassesRuleBuilder
open infix fun named(name: String): ClassesRuleBuilder
open infix fun named(names: List<String>): ClassesRuleBuilder

Filter or assertion criteria for named.

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.

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

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

open infix fun nameEndsWith(suffix: String): ClassesRuleBuilder

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

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

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

open infix fun nameMatches(pattern: String): ClassesRuleBuilder

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

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

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

open infix fun nameStartsWith(prefix: String): ClassesRuleBuilder

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

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

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

open infix fun notInModule(modulePath: String): ClassesRuleBuilder

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

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

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

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

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

open infix fun notInPackage(packagePattern: String): ClassesRuleBuilder

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

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

Filter or assertion criteria for not named.

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

Filter or assertion criteria for not name ends with.

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

Filter or assertion criteria for not name matches.

Link copied to clipboard
open fun notNameStartsWith(vararg prefixes: String): ClassesRuleBuilder
open infix fun notNameStartsWith(prefixes: List<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.