All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.test.services.quarkus.KubernetesQuarkusApplicationManagedResourceBinding Maven / Gradle / Ivy

The newest version!
package io.quarkus.test.services.quarkus;

import io.quarkus.test.bootstrap.ServiceContext;
import io.quarkus.test.scenarios.KubernetesScenario;

public class KubernetesQuarkusApplicationManagedResourceBinding implements QuarkusApplicationManagedResourceBinding {

    @Override
    public boolean appliesFor(ServiceContext context) {
        return context.getTestContext().getRequiredTestClass().isAnnotationPresent(KubernetesScenario.class);
    }

    @Override
    public QuarkusManagedResource init(ProdQuarkusApplicationManagedResourceBuilder builder) {
        KubernetesScenario annotation = builder.getContext().getTestContext().getRequiredTestClass()
                .getAnnotation(KubernetesScenario.class);
        return annotation.deployment().getManagedResource(builder);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy