Package org.jboss.weld.tests.util
Class BeanUtilities
- java.lang.Object
-
- org.jboss.weld.tests.util.BeanUtilities
-
public class BeanUtilities extends Object
Utility methods for testingBeanAttributesandBeans.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidverifyQualifiers(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Annotation... expectedAnnotations)Verifies that the set of qualifiers of a givenBeanAttributesmatches the given set of qualifiers.static voidverifyQualifierTypes(Set<Annotation> annotations, Class<?>... expectedTypes)static voidverifyQualifierTypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Class<?>... expectedTypes)Verifies that the set of qualifiers of a givenBeanAttributesmatches the given set of annotation types.static voidverifyStereotypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Class<?>... expected)Verifies that the set of stereotypes of a givenBeanAttributesmatches the expected stereotypes.static voidverifyTypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Type... expectedTypes)Verifies that the set of bean types of a givenBeanAttributesmatches the expected types.
-
-
-
Method Detail
-
verifyTypes
public static void verifyTypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Type... expectedTypes)Verifies that the set of bean types of a givenBeanAttributesmatches the expected types.
-
verifyStereotypes
public static void verifyStereotypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Class<?>... expected)Verifies that the set of stereotypes of a givenBeanAttributesmatches the expected stereotypes.
-
verifyQualifierTypes
public static void verifyQualifierTypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Class<?>... expectedTypes)Verifies that the set of qualifiers of a givenBeanAttributesmatches the given set of annotation types.
-
verifyQualifierTypes
public static void verifyQualifierTypes(Set<Annotation> annotations, Class<?>... expectedTypes)
-
verifyQualifiers
public static void verifyQualifiers(javax.enterprise.inject.spi.BeanAttributes<?> attributes, Annotation... expectedAnnotations)Verifies that the set of qualifiers of a givenBeanAttributesmatches the given set of qualifiers.
-
-