FileSelectorShould

Fluent assertion receiver for sequential assertions on a FileSelector.

Properties

Link copied to clipboard

Functions

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

Asserts that all file names end with any of the specified suffixes.

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

Asserts that all file names match any of the specified glob patterns.

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

Asserts that all file names start with any of the specified prefixes.

Link copied to clipboard

Asserts that no files contain wildcard imports.

Link copied to clipboard

Asserts that files contain at most one class declaration.

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

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