Package io.quarkus.test.component
Class MockBeanConfiguratorImpl<T>
java.lang.Object
io.quarkus.test.component.MockBeanConfiguratorImpl<T>
- All Implemented Interfaces:
MockBeanConfigurator<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) final Class<?>(package private) final QuarkusComponentTestExtensionBuilder(package private) boolean(package private) Set<org.jboss.jandex.AnnotationInstance>(package private) Set<org.jboss.jandex.Type>(package private) String(package private) Integer(package private) Set<Annotation>(package private) Class<? extends Annotation> -
Constructor Summary
ConstructorsConstructorDescriptionMockBeanConfiguratorImpl(QuarkusComponentTestExtensionBuilder builder, Class<?> beanClass) -
Method Summary
Modifier and TypeMethodDescriptionalternative(boolean alternative) Set the function used to create a new bean instance and register this configurator.A Mockito mock object created from the bean class is used as a bean instance.createMockitoMock(Consumer<T> mockInitializer) A Mockito mock object created from the bean class is used as a bean instance.defaultBean(boolean defaultBean) (package private) booleanhasQualifiers(Set<org.jboss.jandex.AnnotationInstance> requiredQualifiers, BeanResolver beanResolver) (package private) Set<org.jboss.jandex.AnnotationInstance>(package private) Set<org.jboss.jandex.Type>(package private) booleanmatches(BeanResolver beanResolver, org.jboss.jandex.Type requiredType, Set<org.jboss.jandex.AnnotationInstance> qualifiers) (package private) booleanmatchesType(org.jboss.jandex.Type requiredType, BeanResolver beanResolver) priority(int priority) qualifiers(Annotation... qualifiers) register()scope(Class<? extends Annotation> scope)
-
Field Details
-
builder
-
beanClass
-
types
-
qualifiers
Set<Annotation> qualifiers -
scope
Class<? extends Annotation> scope -
alternative
boolean alternative -
priority
Integer priority -
name
String name -
defaultBean
boolean defaultBean -
create
-
jandexTypes
Set<org.jboss.jandex.Type> jandexTypes -
jandexQualifiers
Set<org.jboss.jandex.AnnotationInstance> jandexQualifiers
-
-
Constructor Details
-
MockBeanConfiguratorImpl
-
-
Method Details
-
types
- Specified by:
typesin interfaceMockBeanConfigurator<T>
-
types
- Specified by:
typesin interfaceMockBeanConfigurator<T>
-
qualifiers
- Specified by:
qualifiersin interfaceMockBeanConfigurator<T>
-
scope
- Specified by:
scopein interfaceMockBeanConfigurator<T>
-
name
- Specified by:
namein interfaceMockBeanConfigurator<T>
-
alternative
- Specified by:
alternativein interfaceMockBeanConfigurator<T>
-
priority
- Specified by:
priorityin interfaceMockBeanConfigurator<T>
-
defaultBean
- Specified by:
defaultBeanin interfaceMockBeanConfigurator<T>
-
create
public QuarkusComponentTestExtensionBuilder create(Function<io.quarkus.arc.SyntheticCreationalContext<T>, T> create) Description copied from interface:MockBeanConfiguratorSet the function used to create a new bean instance and register this configurator.- Specified by:
createin interfaceMockBeanConfigurator<T>- Returns:
- the test extension
-
createMockitoMock
Description copied from interface:MockBeanConfiguratorA Mockito mock object created from the bean class is used as a bean instance.- Specified by:
createMockitoMockin interfaceMockBeanConfigurator<T>- Returns:
- the test extension
-
createMockitoMock
Description copied from interface:MockBeanConfiguratorA Mockito mock object created from the bean class is used as a bean instance.- Specified by:
createMockitoMockin interfaceMockBeanConfigurator<T>- Returns:
- the test extension
-
register
-
matches
boolean matches(BeanResolver beanResolver, org.jboss.jandex.Type requiredType, Set<org.jboss.jandex.AnnotationInstance> qualifiers) -
matchesType
-
hasQualifiers
boolean hasQualifiers(Set<org.jboss.jandex.AnnotationInstance> requiredQualifiers, BeanResolver beanResolver) -
jandexTypes
Set<org.jboss.jandex.Type> jandexTypes() -
jandexQualifiers
Set<org.jboss.jandex.AnnotationInstance> jandexQualifiers()
-