Class MockBean<T>

java.lang.Object
org.jboss.weld.junit.MockBean<T>
Type Parameters:
T - See also WeldInitiator.Builder#addBean(Bean) method.
All Implemented Interfaces:
Contextual<T>, Bean<T>, BeanAttributes<T>, PassivationCapable

public class MockBean<T> extends Object implements Bean<T>, PassivationCapable
This custom Bean implementation is useful for mocking.

A new instance is usually created through a MockBean.Builder (see also builder()) and then passed to the WeldInitiator.Builder#addBeans(Bean...) method.

Since:
1.1
Author:
Martin Kouba