![JAR search and dependency download from the Maven repository](/logo.png)
com.marklogic.junit5.VersionExecutionCondition 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;
import org.junit.jupiter.api.extension.ExecutionCondition;
import org.junit.jupiter.api.extension.ExtensionContext;
import java.util.Optional;
/**
* Simplifies implementing an execution condition based on the MarkLogic version. Can only be used on classes that
* implement the {@code HasMarkLogicVersion} interface.
*
* @since 1.5.0
*/
public abstract class VersionExecutionCondition implements ExecutionCondition {
private static MarkLogicVersion markLogicVersion;
@Override
public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context) {
if (markLogicVersion == null) {
Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy