use of io.quarkus.deployment.builditem.TestClassBeanBuildItem in project quarkus by quarkusio.
the class TestsAsBeansProcessor method testClassBeans.
@BuildStep
public void testClassBeans(List<TestClassBeanBuildItem> items, BuildProducer<AdditionalBeanBuildItem> producer) {
if (items.isEmpty()) {
return;
}
AdditionalBeanBuildItem.Builder builder = AdditionalBeanBuildItem.builder();
for (TestClassBeanBuildItem item : items) {
builder.addBeanClass(item.getTestClassName());
}
producer.produce(builder.build());
}
Aggregations