
com.marklogic.junit5.RequiresMarkLogic12 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-junit5 Show documentation
Show all versions of marklogic-junit5 Show documentation
Supports testing MarkLogic applications
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