Search in sources :

Example 1 with TypedLiteral

use of org.apache.deltaspike.core.api.literal.TypedLiteral in project deltaspike by apache.

the class AnnotatedTypeBuilderTest method testAdditionOfAnnotation.

@Test
public void testAdditionOfAnnotation() {
    final AnnotatedTypeBuilder<Cat> builder = new AnnotatedTypeBuilder<Cat>();
    builder.readFromType(Cat.class, true);
    builder.addToClass(new TypedLiteral());
    final AnnotatedType<Cat> catAnnotatedType = builder.create();
    assertThat(catAnnotatedType.isAnnotationPresent(Typed.class), is(true));
}
Also used : Typed(javax.enterprise.inject.Typed) AnnotatedTypeBuilder(org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeBuilder) TypedLiteral(org.apache.deltaspike.core.api.literal.TypedLiteral) Test(org.junit.Test)

Aggregations

Typed (javax.enterprise.inject.Typed)1 TypedLiteral (org.apache.deltaspike.core.api.literal.TypedLiteral)1 AnnotatedTypeBuilder (org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeBuilder)1 Test (org.junit.Test)1