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

com.github.nagyesta.abortmission.testkit.NoOpMatcher Maven / Gradle / Ivy

There is a newer version: 5.0.281
Show newest version
package com.github.nagyesta.abortmission.testkit;

import com.github.nagyesta.abortmission.core.matcher.MissionHealthCheckMatcher;

/**
 * No-Operation matcher just for simple test result definition.
 */
public class NoOpMatcher implements MissionHealthCheckMatcher {

    /**
     * Single instance of {@link NoOpMatcher} for tests.
     */
    public static final NoOpMatcher NOOP = new NoOpMatcher();

    @Override
    public String getName() {
        return null;
    }

    @Override
    public MatchCriteria getMatchCriteria() {
        return null;
    }

    @Override
    public boolean matches(final Object component) {
        return false;
    }

    @Override
    public int compareTo(final MissionHealthCheckMatcher o) {
        if (o instanceof NoOpMatcher) {
            return 0;
        }
        return -1;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy