|
||||||||||
| 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)
|
|
protected Configuration |
getCurrentConfiguration()
|
|
protected javax.enterprise.inject.spi.BeanManager |
getCurrentManager()
|
|
Object |
getInstanceByName(String name)
|
|
|
getInstanceByType(Class<T> beanType,
Annotation... bindings)
|
|
|
getInstanceByType(javax.enterprise.util.TypeLiteral<T> beanType,
Annotation... bindings)
|
|
|
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. |
|
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()
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 getInstanceByType(Class<T> beanType,
Annotation... bindings)
public <T> T getInstanceByType(javax.enterprise.util.TypeLiteral<T> beanType,
Annotation... bindings)
public Object getInstanceByName(String name)
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 | |||||||||