Skip to content

Commit fb4abc2

Browse files
committed
docs: explain how to fix mockito errors
Closes: #195 Signed-off-by: Michael Gasch <[email protected]>
1 parent 9ccaba8 commit fb4abc2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ GitHub provides additional document on [forking a repository](https://help.githu
4444

4545
#### Unit Tests
4646

47+
Before running the tests, ensure you have JAVA_HOME set to a compatible JDK installation (JDK 11 or later is required). For example:
48+
49+
```bash
50+
# macOS example for Amazon Corretto 17
51+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home
52+
# Linux example OpenJDK 17
53+
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
54+
```
55+
56+
Note: When using JDK 17 or later, setting JAVA_HOME is especially important to avoid Mockito mocking errors during testing.
57+
4758
To verify unit tests pass run:
4859

4960
```bash

0 commit comments

Comments
 (0)