Package-level declarations

Types

Link copied to clipboard
fun interface ApplicationRule

Determines if Mokkery should be applied to given KotlinSourceSet or not.

Link copied to clipboard
Link copied to clipboard
class MokkeryGradlePlugin : KotlinCompilerPluginSupportPlugin

Configures Mokkery in source sets specified by MokkeryGradleExtension.rule. It includes:

Link copied to clipboard

When mocking an abstract or open class, its constructor may require arguments. Since Mokkery must invoke this constructor, all required parameters must be provided.

Functions

Link copied to clipboard
fun DependencyHandler.mokkery(module: String, version: String? = null): String
fun KotlinDependencyHandler.mokkery(module: String, version: String? = null): String

Builds the dependency notation for the named Mokkery module at the given version. If version is not specified, it uses current Mokkery version (MokkeryConfig.VERSION)