com.greenpepper.reflect.Fixture Maven / Gradle / Ivy
package com.greenpepper.reflect;
/**
* Fixture interface.
*
* @author oaouattara
* @version $Id: $Id
*/
public interface Fixture
{
/**
* canSend.
*
* @param message a {@link java.lang.String} object.
* @return a boolean.
*/
boolean canSend( String message );
/**
* canCheck.
*
* @param message a {@link java.lang.String} object.
* @return a boolean.
*/
boolean canCheck( String message );
/**
* check.
*
* @param message a {@link java.lang.String} object.
* @return a {@link com.greenpepper.reflect.Message} object.
* @throws com.greenpepper.reflect.NoSuchMessageException if any.
*/
Message check( String message ) throws NoSuchMessageException;
/**
* send.
*
* @param message a {@link java.lang.String} object.
* @return a {@link com.greenpepper.reflect.Message} object.
* @throws com.greenpepper.reflect.NoSuchMessageException if any.
*/
Message send( String message ) throws NoSuchMessageException;
/**
* getTarget.
*
* @return a {@link java.lang.Object} object.
*/
Object getTarget();
/**
* fixtureFor.
*
* @param target a {@link java.lang.Object} object.
* @return a {@link com.greenpepper.reflect.Fixture} object.
*/
Fixture fixtureFor( Object target );
}