|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
public abstract class AbstractTest
Abstract CDI TCK test.
| Field Summary | |
|---|---|
protected javax.enterprise.inject.spi.BeanManager |
beanManager
|
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
|---|
ARQUILLIAN_DATA_PROVIDER |
| Constructor Summary | |
|---|---|
AbstractTest()
|
|
| Method Summary | ||
|---|---|---|
protected Object |
activate(byte[] bytes)
|
|
boolean |
annotationSetMatches(Set<? extends Annotation> annotations,
Annotation... requiredAnnotations)
|
|
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)
|
|
|
getBeans(Class<T> type,
Annotation... bindings)
|
|
|
getBeans(javax.enterprise.util.TypeLiteral<T> type,
Annotation... bindings)
|
|
|
getContextualReference(Class<T> beanType,
Annotation... qualifiers)
|
|
|
getContextualReference(String name,
Class<T> beanType)
|
|
|
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. |
|
|
getUniqueBean(Class<T> type,
Annotation... bindings)
|
|
|
getUniqueBean(javax.enterprise.util.TypeLiteral<T> type,
Annotation... bindings)
|
|
protected boolean |
isThrowablePresent(Class<? extends Throwable> throwableType,
Throwable throwable)
Extracted from test harness. |
|
|
newDependentInstance(Class<T> beanType,
Annotation... qualifiers)
|
|
protected byte[] |
passivate(Object instance)
|
|
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)
|
|
boolean |
typeSetMatches(Collection<? extends Type> types,
Type... requiredTypes)
|
|
| Methods inherited from class org.jboss.arquillian.testng.Arquillian |
|---|
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject protected javax.enterprise.inject.spi.BeanManager beanManager
| Constructor Detail |
|---|
public AbstractTest()
| Method Detail |
|---|
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).
BeanManager
protected byte[] passivate(Object instance)
throws IOException
IOException
protected Object activate(byte[] bytes)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionprotected 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()
public boolean annotationSetMatches(Set<? extends Annotation> annotations,
Class<? extends Annotation>... requiredAnnotationTypes)
annotations - The annotation setrequiredAnnotationTypes - The annotations to match
public boolean annotationSetMatches(Set<? extends Annotation> annotations,
Annotation... requiredAnnotations)
annotations - The annotation setrequiredAnnotationTypes - The required annotations
true if speficied set matches required annotations, false otherwise
public boolean rawTypeSetMatches(Set<Type> types,
Class<?>... requiredTypes)
public boolean typeSetMatches(Collection<? extends Type> types,
Type... requiredTypes)
public <T> javax.enterprise.inject.spi.Bean<T> getUniqueBean(Class<T> type,
Annotation... bindings)
public <T> javax.enterprise.inject.spi.Bean<T> getUniqueBean(javax.enterprise.util.TypeLiteral<T> type,
Annotation... bindings)
public <T> Set<javax.enterprise.inject.spi.Bean<T>> getBeans(Class<T> type,
Annotation... bindings)
public <T> Set<javax.enterprise.inject.spi.Bean<T>> getBeans(javax.enterprise.util.TypeLiteral<T> type,
Annotation... bindings)
public <T> T getContextualReference(Class<T> beanType,
Annotation... qualifiers)
public <T> T getContextualReference(javax.enterprise.util.TypeLiteral<T> beanType,
Annotation... qualifiers)
public <T> T getContextualReference(String name,
Class<T> beanType)
public <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 otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||