com.greenpepper.call.ResultIs Maven / Gradle / Ivy
package com.greenpepper.call;
/**
* ResultIs class.
*
* @author oaouattara
* @version $Id: $Id
*/
public final class ResultIs
{
/**
* wrong.
*
* @return a {@link com.greenpepper.call.ResultMatcher} object.
*/
public static ResultMatcher wrong()
{
return new ResultIsWrong();
}
/**
* not.
*
* @param condition a {@link com.greenpepper.call.ResultMatcher} object.
* @return a {@link com.greenpepper.call.ResultMatcher} object.
*/
public static ResultMatcher not( ResultMatcher condition )
{
return new ResultIsNot( condition );
}
/**
* exception.
*
* @return a {@link com.greenpepper.call.ResultMatcher} object.
*/
public static ResultMatcher exception()
{
return new ResultIsException();
}
/**
* equalTo.
*
* @param value a {@link java.lang.Object} object.
* @return a {@link com.greenpepper.call.ResultMatcher} object.
*/
public static ResultMatcher equalTo( Object value )
{
return new ActualEquals( value );
}
/**
* right.
*
* @return a {@link com.greenpepper.call.ResultMatcher} object.
*/
public static ResultMatcher right()
{
return new ResultIsRight();
}
private ResultIs()
{
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy