Skip navigation links
A B C D E F G H I M N O Q S T W 

A

activate(Class<? extends Annotation>...) - Method in class org.jboss.weld.junit4.WeldInitiator.Builder
Activate and deactivate contexts for the given normal scopes for each test method execution.
addBeans(Bean<?>...) - Method in class org.jboss.weld.junit4.WeldInitiator.Builder
Instructs the WeldInitiator to add the specified beans during AfterBeanDiscovery notification.
alternative(boolean) - Method in class org.jboss.weld.junit4.MockBean.Builder
 
apply(Statement, Description) - Method in class org.jboss.weld.junit4.WeldInitiator
 

B

build() - Method in class org.jboss.weld.junit4.MockBean.Builder
 
build() - Method in class org.jboss.weld.junit4.WeldInitiator.Builder
 
builder() - Static method in class org.jboss.weld.junit4.MockBean
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 MockBean.Builder.creating(Object) or Builder#create(CreateFunction) must be always set.
Builder(Weld) - Constructor for class org.jboss.weld.junit4.WeldInitiator.Builder
 

C

create(MockBean.CreateFunction<T>) - Method in class org.jboss.weld.junit4.MockBean.Builder
 
create(CreationalContext<T>) - Method in class org.jboss.weld.junit4.MockBean
 
create(CreationalContext<T>) - Method in interface org.jboss.weld.junit4.MockBean.CreateFunction
 
createWeld() - Static method in class org.jboss.weld.junit4.WeldInitiator
The returned Weld instance has: automatic discovery disabled concurrent deployment disabled
creating(T) - Method in class org.jboss.weld.junit4.MockBean.Builder
Each invocation of Contextual.create(CreationalContext) will return the same instance.

D

destroy(MockBean.DestroyFunction<T>) - Method in class org.jboss.weld.junit4.MockBean.Builder
 
destroy(T, CreationalContext<T>) - Method in class org.jboss.weld.junit4.MockBean
 
destroy(T, CreationalContext<T>) - Method in interface org.jboss.weld.junit4.MockBean.DestroyFunction
 
destroy(Object) - Method in class org.jboss.weld.junit4.WeldInitiator
 

E

event() - Method in class org.jboss.weld.junit4.WeldInitiator
Allows to fire events.

F

from(Class<?>...) - Static method in class org.jboss.weld.junit4.WeldInitiator
Create a builder instance.
from(Weld) - Static method in class org.jboss.weld.junit4.WeldInitiator
Create a builder instance.
fromTestPackage() - Static method in class org.jboss.weld.junit4.WeldInitiator
Create a builder instance.

G

get() - Method in class org.jboss.weld.junit4.WeldInitiator
 
getBeanClass() - Method in class org.jboss.weld.junit4.MockBean
 
getBeanManager() - Method in class org.jboss.weld.junit4.WeldInitiator
 
getHandler() - Method in class org.jboss.weld.junit4.WeldInitiator
 
getId() - Method in class org.jboss.weld.junit4.MockBean
 
getId() - Method in class org.jboss.weld.junit4.WeldInitiator
 
getInjectionPoints() - Method in class org.jboss.weld.junit4.MockBean
 
getName() - Method in class org.jboss.weld.junit4.MockBean
 
getQualifiers() - Method in class org.jboss.weld.junit4.MockBean
 
getScope() - Method in class org.jboss.weld.junit4.MockBean
 
getStereotypes() - Method in class org.jboss.weld.junit4.MockBean
 
getTypes() - Method in class org.jboss.weld.junit4.MockBean
 

H

handlers() - Method in class org.jboss.weld.junit4.WeldInitiator
 

I

inject(Object) - Method in class org.jboss.weld.junit4.WeldInitiator.Builder
Instructs the WeldInitiator to inject the given non-contextual instance once the container is started, i.e. during test execution.
isAlternative() - Method in class org.jboss.weld.junit4.MockBean
 
isAmbiguous() - Method in class org.jboss.weld.junit4.WeldInitiator
 
isNullable() - Method in class org.jboss.weld.junit4.MockBean
 
isResolvable() - Method in class org.jboss.weld.junit4.WeldInitiator
 
isRunning() - Method in class org.jboss.weld.junit4.WeldInitiator
 
isUnsatisfied() - Method in class org.jboss.weld.junit4.WeldInitiator
 
iterator() - Method in class org.jboss.weld.junit4.WeldInitiator
 

M

MockBean<T> - Class in org.jboss.weld.junit4
This custom Bean implementation is useful for mocking.
MockBean.Builder<T> - Class in org.jboss.weld.junit4
A builder instance should not be reused nor shared.
MockBean.CreateFunction<T> - Interface in org.jboss.weld.junit4
 
MockBean.DestroyFunction<T> - Interface in org.jboss.weld.junit4
 

N

name(String) - Method in class org.jboss.weld.junit4.MockBean.Builder
 

O

of(T, Type...) - Static method in class org.jboss.weld.junit4.MockBean
A convenient method to create a Bean with default values (see also MockBean.builder()).
of(Class<?>...) - Static method in class org.jboss.weld.junit4.WeldInitiator
The container is configured with the result of WeldInitiator.createWeld() method and the given bean classes are added.
of(Weld) - Static method in class org.jboss.weld.junit4.WeldInitiator
The container is configured through a provided Weld instance.
ofTestPackage() - Static method in class org.jboss.weld.junit4.WeldInitiator
The container is configured with the result of WeldInitiator.createWeld() method and all the classes from the test class package are added.
org.jboss.weld.junit4 - package org.jboss.weld.junit4
 

Q

qualifiers(Annotation...) - Method in class org.jboss.weld.junit4.MockBean.Builder
 

S

scope(Class<? extends Annotation>) - Method in class org.jboss.weld.junit4.MockBean.Builder
 
select(Annotation...) - Method in class org.jboss.weld.junit4.WeldInitiator
 
select(Class<U>, Annotation...) - Method in class org.jboss.weld.junit4.WeldInitiator
 
select(TypeLiteral<U>, Annotation...) - Method in class org.jboss.weld.junit4.WeldInitiator
 
shutdown() - Method in class org.jboss.weld.junit4.WeldInitiator
Note that any container-based operation will result in IllegalStateException after shutdown.
stereotypes(Class<? extends Annotation>...) - Method in class org.jboss.weld.junit4.MockBean.Builder
 

T

types(Type...) - Method in class org.jboss.weld.junit4.MockBean.Builder
 

W

WeldInitiator - Class in org.jboss.weld.junit4
Test rule which starts a Weld container per each test method execution: public class SimpleTest { @Rule public WeldInitiator weld = WeldInitiator.of(Foo.class); @Test public void testFoo() { // Weld container is started automatically // WeldInitiator can be used to perform programmatic lookup of beans assertEquals("baz", weld.select(Foo.class).get().getBaz()); } } WeldInitiator implements Instance and therefore might be used to perform programmatic lookup of bean instances.
WeldInitiator.Builder - Class in org.jboss.weld.junit4
This builder can be used to customize the final WeldInitiator instance, e.g. to activate a context for a given normal scope.
A B C D E F G H I M N O Q S T W 
Skip navigation links

Copyright © 2017. All rights reserved.