Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how to fix mockito errors #461

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 for Amazon Corretto 17
export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home
# Linux example OpenJDK 17
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