org.exparity.expectamundo.expectations.NullExpectation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of expectamundo Show documentation
Show all versions of expectamundo Show documentation
A Java library for create a prototype object with expected values and verifying the actual object has matching values
package org.exparity.expectamundo.expectations;
import org.exparity.expectamundo.core.PropertyExpectation;
/**
* Implementation of a {@link PropertyExpectation} to check if a property is null
*
* @author Stewart Bissett
*/
@SuppressWarnings("rawtypes")
public class NullExpectation implements PropertyExpectation {
@Override
public boolean matches(final Object actual) {
return actual == null;
}
@Override
public String describe() {
return "is null";
}
}