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

io.quarkus.test.annotations.DisabledIfNotContainerRegistryCondition Maven / Gradle / Ivy

There is a newer version: 1.6.0.Beta15
Show newest version
package io.quarkus.test.annotations;

import static io.quarkus.test.utils.DockerUtils.CONTAINER_REGISTRY_URL_PROPERTY;

import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.extension.ExtensionContext;

import io.quarkus.test.scenarios.annotations.CheckIfSystemPropertyCondition;

public class DisabledIfNotContainerRegistryCondition extends CheckIfSystemPropertyCondition {

    @Override
    protected String getSystemPropertyName(ExtensionContext context) {
        return CONTAINER_REGISTRY_URL_PROPERTY;
    }

    @Override
    protected boolean checkEnableCondition(ExtensionContext context, String actual) {
        return !StringUtils.isEmpty(actual);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy