From 4e9c49dc39cf83e4c4af6b15b721431713382ef2 Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Wed, 25 Oct 2023 14:16:56 +0200 Subject: [PATCH] Add missing annotation literals to test deployments --- .../event/observer/resolve/ResolveEventObserversTest.java | 3 ++- .../alternative/metadata/AlternativeMetadataTest.java | 2 ++ .../tck/tests/full/extensions/beanManager/BeanManagerTest.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/resolve/ResolveEventObserversTest.java b/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/resolve/ResolveEventObserversTest.java index e108c8c82a..04b7fad158 100644 --- a/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/resolve/ResolveEventObserversTest.java +++ b/impl/src/main/java/org/jboss/cdi/tck/tests/event/observer/resolve/ResolveEventObserversTest.java @@ -53,7 +53,8 @@ public class ResolveEventObserversTest extends AbstractTest { @Deployment public static WebArchive createTestArchive() { - return new WebArchiveBuilder().withTestClassPackage(ResolveEventObserversTest.class).build(); + return new WebArchiveBuilder().withTestClassPackage(ResolveEventObserversTest.class) + .withClasses(OverrideLiteral.class).build(); } @Test diff --git a/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/alternative/metadata/AlternativeMetadataTest.java b/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/alternative/metadata/AlternativeMetadataTest.java index 59c0217b42..23ad8da161 100644 --- a/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/alternative/metadata/AlternativeMetadataTest.java +++ b/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/alternative/metadata/AlternativeMetadataTest.java @@ -30,6 +30,7 @@ import jakarta.enterprise.util.AnnotationLiteral; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.cdi.tck.AbstractTest; +import org.jboss.cdi.tck.literals.ProducesLiteral; import org.jboss.cdi.tck.shrinkwrap.WebArchiveBuilder; import org.jboss.shrinkwrap.api.spec.WebArchive; import org.jboss.shrinkwrap.impl.BeansXml; @@ -56,6 +57,7 @@ public class AlternativeMetadataTest extends AbstractTest { public static WebArchive createTestArchive() { return new WebArchiveBuilder() .withTestClassPackage(AlternativeMetadataTest.class) + .withClasses(ProducesLiteral.class) .withBeansXml(new BeansXml().interceptors(GroceryInterceptor.class)) .withExtension(ProcessAnnotatedTypeObserver.class).build(); } diff --git a/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/beanManager/BeanManagerTest.java b/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/beanManager/BeanManagerTest.java index f39b271546..b331747f44 100644 --- a/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/beanManager/BeanManagerTest.java +++ b/impl/src/main/java/org/jboss/cdi/tck/tests/full/extensions/beanManager/BeanManagerTest.java @@ -84,7 +84,7 @@ public class BeanManagerTest extends AbstractTest { @Deployment public static WebArchive createTestArchive() { return new WebArchiveBuilder().withTestClassPackage(BeanManagerTest.class) - .withClasses(RetentionLiteral.class, TargetLiteral.class) + .withClasses(RetentionLiteral.class, TargetLiteral.class, StereotypeLiteral.class) .withExtensions(AfterBeanDiscoveryObserver.class).build(); }