FileDeclarationShouldContext
Context receiver for writing declarative assertions on a FileDeclarationContext element. Provides easy access to all element properties and custom helper assertions.
Properties
Link copied to clipboard
The complete list of file declaration contexts in this test run scope.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The target FileDeclarationContext being verified.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Mutable collection where assertion failure messages are appended.
Functions
Link copied to clipboard
Appends a custom violation failure message to the assertion run.
Link copied to clipboard
Asserts that this file does not use any wildcard star imports.
Link copied to clipboard
Asserts that this file contains at most one class declaration.
Link copied to clipboard
Checks if this file contains any classes matching the given predicate.
Link copied to clipboard
Checks if this file contains any import with matching package path segment strings.