Search in sources :

Example 1 with NessieVersion

use of org.projectnessie.tools.compatibility.api.NessieVersion in project nessie by projectnessie.

the class AbstractMultiVersionExtension method populateNessieVersionAnnotatedFields.

Version populateNessieVersionAnnotatedFields(ExtensionContext context, Object instance) {
    Optional<Version> nessieVersion = nessieVersionFromContext(context);
    if (!nessieVersion.isPresent()) {
        return null;
    }
    Version version = nessieVersion.get();
    populateAnnotatedFields(context, instance, NessieVersion.class, f -> version);
    return version;
}
Also used : NessieVersion(org.projectnessie.tools.compatibility.api.NessieVersion) Version.parseVersion(org.projectnessie.tools.compatibility.api.Version.parseVersion) Version(org.projectnessie.tools.compatibility.api.Version)

Aggregations

NessieVersion (org.projectnessie.tools.compatibility.api.NessieVersion)1 Version (org.projectnessie.tools.compatibility.api.Version)1 Version.parseVersion (org.projectnessie.tools.compatibility.api.Version.parseVersion)1