| Modifier and Type | Method and Description |
|---|---|
MockBean.Builder<T> |
MockBean.Builder.alternative(boolean value) |
static <T> MockBean.Builder<T> |
MockBean.builder()
By default, the bean:
has no name
has
Dependent scope
has Any qualifier and Default is added automatically if no other qualifiers are set
has Object bean type
has no stereotypes
is not an alternative
Note that creating(Object) or Builder#create(CreateFunction) must be always set. |
MockBean.Builder<T> |
MockBean.Builder.create(MockBean.CreateFunction<T> callback) |
MockBean.Builder<T> |
MockBean.Builder.creating(T instance)
Each invocation of
Contextual.create(CreationalContext) will return the same instance. |
MockBean.Builder<T> |
MockBean.Builder.destroy(MockBean.DestroyFunction<T> callback) |
MockBean.Builder<T> |
MockBean.Builder.name(String name) |
MockBean.Builder<T> |
MockBean.Builder.qualifiers(Annotation... qualifiers) |
MockBean.Builder<T> |
MockBean.Builder.scope(Class<? extends Annotation> scope) |
MockBean.Builder<T> |
MockBean.Builder.stereotypes(Class<? extends Annotation>... stereotypes) |
MockBean.Builder<T> |
MockBean.Builder.types(Type... types) |
Copyright © 2017. All rights reserved.