Error

When I wrote a test in Quarkus, the test content seemed to be correct, but it didn't pass easily, so I will briefly summarize the cause. [Error Occurred After Shutdown]: org.junit.jupiter.api.extension.TestInstantiationException: Failed to create test instance

Solution

The injection could not be done because the following library was wrong. import io.quarkus.test.junit.mockito.InjectMock import io.quarkiverse.test.junit.mockk.InjectMock