![JAR search and dependency download from the Maven repository](/logo.png)
com.marklogic.junit5.RequiresMarkLogic11 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 11 or higher.
*
* @since 1.5.0
*/
public class RequiresMarkLogic11 extends VersionExecutionCondition {
@Override
protected ConditionEvaluationResult evaluateVersion(MarkLogicVersion version) {
return version.getMajor() >= 10 ?
ConditionEvaluationResult.enabled("MarkLogic is version 11 or higher.") :
ConditionEvaluationResult.disabled("MarkLogic is version 10 or lower.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy