public abstract class AbstractTest
extends org.jboss.arquillian.testng.Arquillian
| Modifier and Type | Field and Description |
|---|---|
protected javax.enterprise.inject.spi.BeanManager |
beanManager |
| Constructor and Description |
|---|
AbstractTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
activate(byte[] bytes) |
protected boolean |
annotationSetMatches(Set<? extends Annotation> annotations,
Annotation... requiredAnnotations) |
protected boolean |
annotationSetMatches(Set<? extends Annotation> annotations,
Class<? extends Annotation>... requiredAnnotationTypes)
Checks if all annotations are in a given set of annotations
|
protected void |
destroyContext(javax.enterprise.context.spi.Context context) |
protected <T> Set<javax.enterprise.inject.spi.Bean<T>> |
getBeans(Class<T> type,
Annotation... bindings) |
protected <T> Set<javax.enterprise.inject.spi.Bean<T>> |
getBeans(javax.enterprise.util.TypeLiteral<T> type,
Annotation... bindings) |
protected <T> T |
getContextualReference(Class<T> beanType,
Annotation... qualifiers) |
protected <T> T |
getContextualReference(String name,
Class<T> beanType) |
protected <T> T |
getContextualReference(javax.enterprise.util.TypeLiteral<T> beanType,
Annotation... qualifiers) |
protected Configuration |
getCurrentConfiguration() |
protected javax.enterprise.inject.spi.BeanManager |
getCurrentManager()
Note that TCK uses Arquillian Servlet protocol and so the test class is instantiated/enriched from within the WAR module.
|
protected <T> javax.enterprise.inject.spi.Bean<T> |
getUniqueBean(Class<T> type,
Annotation... bindings) |
protected <T> javax.enterprise.inject.spi.Bean<T> |
getUniqueBean(javax.enterprise.util.TypeLiteral<T> type,
Annotation... bindings) |
protected boolean |
isThrowablePresent(Class<? extends Throwable> throwableType,
Throwable throwable)
Extracted from test harness.
|
protected <T> DependentInstance<T> |
newDependentInstance(Class<T> beanType,
Annotation... qualifiers) |
protected byte[] |
passivate(Object instance) |
protected boolean |
rawTypeSetMatches(Set<Type> types,
Class<?>... requiredTypes) |
protected void |
setContextActive(javax.enterprise.context.spi.Context context) |
protected void |
setContextInactive(javax.enterprise.context.spi.Context context) |
protected boolean |
typeSetMatches(Collection<? extends Type> types,
Type... requiredTypes) |
protected javax.enterprise.inject.spi.BeanManager getCurrentManager()
BeanManager methods functionality. For instance the method
BeanManager.getBeans(Type, Annotation...) returns the set of beans which are available for injection in the
module or library containing the class into which the BeanManager was injected (simplified).BeanManagerprotected byte[] passivate(Object instance) throws IOException
IOExceptionprotected Object activate(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected void setContextActive(javax.enterprise.context.spi.Context context)
protected void setContextInactive(javax.enterprise.context.spi.Context context)
protected void destroyContext(javax.enterprise.context.spi.Context context)
protected Configuration getCurrentConfiguration()
protected boolean annotationSetMatches(Set<? extends Annotation> annotations, Class<? extends Annotation>... requiredAnnotationTypes)
annotations - The annotation setrequiredAnnotationTypes - The annotations to matchprotected boolean annotationSetMatches(Set<? extends Annotation> annotations, Annotation... requiredAnnotations)
annotations - The annotation setrequiredAnnotationTypes - The required annotationstrue if speficied set matches required annotations, false otherwiseprotected boolean typeSetMatches(Collection<? extends Type> types, Type... requiredTypes)
protected <T> javax.enterprise.inject.spi.Bean<T> getUniqueBean(Class<T> type, Annotation... bindings)
protected <T> javax.enterprise.inject.spi.Bean<T> getUniqueBean(javax.enterprise.util.TypeLiteral<T> type,
Annotation... bindings)
protected <T> Set<javax.enterprise.inject.spi.Bean<T>> getBeans(Class<T> type, Annotation... bindings)
protected <T> Set<javax.enterprise.inject.spi.Bean<T>> getBeans(javax.enterprise.util.TypeLiteral<T> type, Annotation... bindings)
protected <T> T getContextualReference(Class<T> beanType, Annotation... qualifiers)
protected <T> T getContextualReference(javax.enterprise.util.TypeLiteral<T> beanType,
Annotation... qualifiers)
protected <T> DependentInstance<T> newDependentInstance(Class<T> beanType, Annotation... qualifiers)
protected boolean isThrowablePresent(Class<? extends Throwable> throwableType, Throwable throwable)
throwableType - throwable - true if throwable type is assignable from specified throwable or any cause in stack (works
recursively), false otherwiseCopyright © 2008-2015 Seam Framework. All Rights Reserved.