use of io.quarkus.kubernetes.spi.KubernetesEnvBuildItem in project quarkus by quarkusio.
the class EnvVarValidatorTest method getBuildItemsOneItemShouldWork.
@Test
void getBuildItemsOneItemShouldWork() {
final KubernetesEnvBuildItem initial = KubernetesEnvBuildItem.createSimpleVar("name", "value", TARGET);
validator.process(initial);
final Collection<KubernetesEnvBuildItem> items = validator.getBuildItems();
assertEquals(1, items.size());
assertEquals(initial, items.stream().findFirst().orElseGet(() -> fail("no item was found when one was expected")));
}
Aggregations