com.accenture.testing.bdd.comparison.Matcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bdd-for-all Show documentation
Show all versions of bdd-for-all Show documentation
A simple to use, easy to integrate, BDD library for API and microservices development.
The newest version!
package com.accenture.testing.bdd.comparison;
import java.util.Objects;
public enum Matcher {
/** objects equal. */
equal {
@Override
public boolean match(Object in, Object match) {
return Objects.equals(in, match);
}
@Override
public String toString() {
return "equals";
}
},
/** objects don't equal. */
not_equal {
@Override
public boolean match(Object in, Object match) {
return !Objects.equals(in, match);
}
@Override
public String toString() {
return "not equals";
}
};
/**
* match the objects.
*
* @param in the object to match
* @param match the object to match
* @return if they match based on operation
*/
public abstract boolean match(Object in, Object match);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy