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

com.marklogic.junit5.RequiresMarkLogic12 Maven / Gradle / Ivy

The newest version!
/*
 * Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
 */
package com.marklogic.junit5;

import org.junit.jupiter.api.extension.ConditionEvaluationResult;

/**
 * Convenience for tests that require MarkLogic 12 or higher.
 *
 * @since 1.5.0
 */
public class RequiresMarkLogic12 extends VersionExecutionCondition {

    @Override
    protected ConditionEvaluationResult evaluateVersion(MarkLogicVersion version) {
        return version.getMajor() >= 12 ?
            ConditionEvaluationResult.enabled("MarkLogic is version 12 or higher.") :
            ConditionEvaluationResult.disabled("MarkLogic is version 11 or lower.");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy