Skip to content

Inline mocking configuration snippet for Gradle should allow task relocatability #3605

@jprinet

Description

@jprinet

The Mockito documentation snippet to configure inline mocking references the java agent with an absolute path in the JVM arguments (there).

This actually breaks relocatability as described in the Gradle documentation in the Gradle documentation.

The recommended approach is to use a CommandLineArgumentProvider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions