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

org.hamcrest.DiagnosingMatcher Maven / Gradle / Ivy

Go to download

This is the core API of hamcrest matcher framework to be used by third-party framework providers. This includes the a foundation set of matcher implementations for common operations.

There is a newer version: 3.0
Show newest version
package org.hamcrest;

/**
 * TODO(ngd): Document.
 *
 * @param 
 */
public abstract class DiagnosingMatcher extends BaseMatcher {

	public final boolean matches(Object item) {
		return matches(item, Description.NONE);
	}

	@Override
  public final void describeMismatch(Object item, Description mismatchDescription) {
		matches(item, mismatchDescription);
	}

	protected abstract boolean matches(Object item, Description mismatchDescription);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy