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));
}
Aggregations