Package io.quarkus.panache.mock
Class PanacheMock
java.lang.Object
io.quarkus.panache.mock.PanacheMock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PanacheStubberdoAnswer(org.mockito.stubbing.Answer answer) static PanacheStubberstatic PanacheStubberstatic PanacheStubberstatic PanacheStubberstatic PanacheStubberstatic PanacheStubberstatic PanacheStubberstatic <T> Tstatic Object[]static booleanstatic voidstatic ObjectmockMethod(Class<?> klass, String methodName, Class<?>[] parameterTypes, Object[] args) static voidreset()static <T> Tstatic <T> Tstatic voidverifyNoInteractions(Class<?>... classes) static voidverifyNoMoreInteractions(Class<?>... classes)
-
Field Details
-
IsMockEnabled
public static volatile boolean IsMockEnabled
-
-
Constructor Details
-
PanacheMock
public PanacheMock()
-
-
Method Details
-
getMock
-
getMocks
-
mock
-
reset
public static void reset() -
isMocked
-
mockMethod
-
verify
-
verify
public static <T> T verify(Class<T> klass, org.mockito.verification.VerificationMode verificationMode) -
verifyNoMoreInteractions
-
verifyNoInteractions
-
doAnswer
-
doCallRealMethod
-
doNothing
-
doReturn
-
doReturn
-
doThrow
-
doThrow
public static PanacheStubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... toBeThrownNext) -
doThrow
-