程序包 cn.taketoday.framework.test.mock.mockito
package cn.taketoday.framework.test.mock.mockito
Mockito integration for tests.
-
类说明Base class for
MockDefinitionandSpyDefinition.Parser to createMockDefinitionandSpyDefinitioninstances from@MockBeanand@SpyBeanannotations declared on or in a class.AMockResolverfor testing Infra applications with Resolves mocks by returning theultimate target objectof the instance.Annotation that can be used to add mocks to a InfraApplicationContext.Container annotation that aggregates several@MockBeanannotations.A complete definition that can be used to create a Mockito mock.Beans created usingAContextCustomizerto add Mockito support.AContextCustomizerFactoryto add Mockito support.BeanPostProcessorto handleSpyBeandefinitions.ReflectionUtils.FieldCallbackto collect Mockito annotations.Reset strategy used on a mock bean.DummyInvocationListenerused to hold theMockResetvalue.Definition of a Infra@Qualifier.TestExecutionListenerto reset any mock beans that have been marked with aMockReset.Annotation that can be used to apply Mockito spies to a InfraApplicationContext.Container annotation that aggregates several@SpyBeanannotations.A complete definition that can be used to create a Mockito spy.AVerificationStartedListenerthat bypasses any proxy created by Infra AOP when the verification of a spy starts.