bpm-crafters / bpm-crafters/process-engine-worker

Avoid Mockito warning

Open
#78 0 comments 0 reactions 0 assignees View on GitHub
Type: enhancement
Dominant language
Kotlin
Stars
17
Forks
2
Avg merge
2d 20h
Merged PRs (30d)
4

Description

### Current Behaviour

When running itests, we get the following warning

```
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3
WARNING: A Java agent has been loaded dynamically (/.../.m2/repository/net/bytebuddy/byte-buddy-agent/1.15.11/byte-buddy-agent-1.15.11.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

```

### Wanted Behaviour

No Warning

### Possible Workarounds

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the build configuration used when running itests and read the linked Mockito documentation about adding an agent. Confirm the configuration works on the relevant JDK and that running itests no longer emits the dynamic-agent and classpath-sharing warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.