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

Tests fail with Mockito cannot mock this class #195

Open
embano1 opened this issue Dec 26, 2023 · 0 comments
Open

Tests fail with Mockito cannot mock this class #195

embano1 opened this issue Dec 26, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@embano1
Copy link
Contributor

embano1 commented Dec 26, 2023

Describe the bug

Running mvn clean package -Drevision=$(git describe --tags --always) can fail with:

[ERROR]   EventBridgeWriterTest.usesGlobalEndpointId » Mockito
Mockito cannot mock this class: interface software.amazon.awssdk.services.eventbridge.EventBridgeAsyncClient.

If you're not sure why you're getting this error, please open an issue on GitHub.

To Reproduce

Use OpenJDK 21 and run tests/compile the project.

Expected behavior

No error.

Environment:

OpenJDK 21

Additional context

Update CONTRIBUTING docs with instructions how to specify the correct JDK e.g., export JAVA_HOME=~/Library/Java/JavaVirtualMachines/openjdk-20.0.1/Contents/Home

@embano1 embano1 added the bug Something isn't working label Dec 26, 2023
@embano1 embano1 self-assigned this Dec 26, 2023
@embano1 embano1 added this to the 1.2.0 milestone Jan 4, 2024
@embano1 embano1 added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jan 15, 2024
@embano1 embano1 modified the milestones: 1.2.0, 1.3.0 Feb 28, 2024
@embano1 embano1 removed this from the 1.3.0 milestone May 21, 2024
@embano1 embano1 modified the milestones: v1.3.1, v1.3.2 Aug 9, 2024
@embano1 embano1 modified the milestones: v1.3.3, v1.3.4 Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant