Skip to content

Commit

Permalink
Updates quarkusdocs to replace deprecated injectMock
Browse files Browse the repository at this point in the history
  • Loading branch information
appiepollo14 committed Apr 21, 2024
1 parent 4d68cc6 commit 432d9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/hibernate-orm-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,8 @@ If you need to mock entity instance methods, such as `persist()` you can do it b

[source,java]
----
import io.quarkus.test.InjectMock;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.mockito.InjectMock;
import org.hibernate.Session;
import org.hibernate.query.Query;
import org.junit.jupiter.api.Assertions;
Expand Down Expand Up @@ -1322,8 +1322,8 @@ You can write your mocking test like this:

[source,java]
----
import io.quarkus.test.InjectMock;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.mockito.InjectMock;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/rest-client.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1768,8 +1768,8 @@ import org.eclipse.microprofile.rest.client.inject.RestClient;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import io.quarkus.test.InjectMock;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.mockito.InjectMock;
@QuarkusTest
public class InjectMockTest {
Expand Down

0 comments on commit 432d9dd

Please sign in to comment.