question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Mockito in native tests

See original GitHub issue

Currently Mockito doesn’t work with native tests. See https://github.com/spring-projects-experimental/spring-native/issues/1561 and https://github.com/spring-projects-experimental/spring-native/issues/1063 for more details.

For now, we can disable the ResetMocksTestExecutionListener, but it would be nice if we could make Mockito work.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sdeleuzecommented, Aug 31, 2022

FYI there is ongoing work on GraalVM side to make it work, I will try to share up to date news about current status.

0reactions
mhalbrittercommented, Dec 8, 2022

Indeed, that would be really great. Hopefully we get this working with Boot 3.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Unit Testing Practitioner's Guide to Everyday Mockito - Toptal
In this article, we'll cover creating and configuring mocks and using them to verify the expected behavior of the system being tested.
Read more >
Complete JUnit 5 Mockito Tutorial For Unit Testing - LambdaTest
It shows how to add a mock object to a test case and verify its behavior with JUnit 5. JUnit 5 has an...
Read more >
A Complete Guide On Unit Testing Using Mockito In Android
In this tutorial, we will learn how what is Mockito and the steps to implement unit testing using Mockito in Android application.
Read more >
Unit tests with Mockito - Tutorial - Vogella.com
Mockito records the interaction with mock and allows you to check if the mock object was used correct, e.g. if a certain method...
Read more >
Mock dependencies using Mockito - Flutter documentation
1. Add the package dependencies · 2. Create a function to test · 3. Create a test file with a mock http.Client ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found