|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.testharness.AbstractTest
org.jboss.jsr299.tck.AbstractJSR299Test
public abstract class AbstractJSR299Test
Constructor Summary | |
---|---|
AbstractJSR299Test()
|
Method Summary | ||
---|---|---|
boolean |
annotationSetMatches(Set<? extends Annotation> annotations,
Class<? extends Annotation>... requiredAnnotationTypes)
Checks if all annotations are in a given set of annotations |
|
protected Object |
deserialize(byte[] bytes)
|
|
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 JSR299Configuration |
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 org.jboss.testharness.api.DeploymentException |
handleDeploymentFailure(org.jboss.testharness.api.DeploymentException deploymentException)
|
|
boolean |
rawTypeSetMatches(Set<Type> types,
Class<?>... requiredTypes)
|
|
protected byte[] |
serialize(Object instance)
|
|
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.testharness.AbstractTest |
---|
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, isInContainer, isThrowablePresent, postCreate, run, setInContainer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJSR299Test()
Method Detail |
---|
protected javax.enterprise.inject.spi.BeanManager getCurrentManager()
protected byte[] serialize(Object instance) throws IOException
IOException
protected Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected 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 JSR299Configuration getCurrentConfiguration()
getCurrentConfiguration
in class org.jboss.testharness.AbstractTest
public boolean annotationSetMatches(Set<? extends Annotation> annotations, Class<? extends Annotation>... requiredAnnotationTypes)
annotations
- The annotation setrequiredAnnotationTypes
- The annotations to match
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 org.jboss.testharness.api.DeploymentException handleDeploymentFailure(org.jboss.testharness.api.DeploymentException deploymentException)
handleDeploymentFailure
in class org.jboss.testharness.AbstractTest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |