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

org.exparity.expectamundo.expectations.NullExpectation Maven / Gradle / Ivy

Go to download

A Java library for create a prototype object with expected values and verifying the actual object has matching values

There is a newer version: 0.9.20
Show newest version

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";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy