Skip to content

Commit

Permalink
docs: explain how to fix mockito errors
Browse files Browse the repository at this point in the history
Closes: awslabs#195
Signed-off-by: Michael Gasch <15986659+embano1@users.noreply.github.com>
  • Loading branch information
embano1 committed Dec 27, 2024
1 parent 9ccaba8 commit c44ba8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ GitHub provides additional document on [forking a repository](https://help.githu

#### Unit Tests

Before running the tests, ensure you have JAVA_HOME set to a compatible JDK installation (JDK 11 or later is required). For example:

```bash
# macOS example
export JAVA_HOME=~/Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home
# Linux example
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
```

Note: When using JDK 17 or later, setting JAVA_HOME is especially important to avoid Mockito mocking errors during testing.

To verify unit tests pass run:

```bash
Expand Down

0 comments on commit c44ba8f

Please sign in to comment.