org.fest.assertions.description
Class TextDescription

java.lang.Object
  extended by org.fest.assertions.description.Description
      extended by org.fest.assertions.description.TextDescription
Direct Known Subclasses:
EmptyTextDescription

public class TextDescription
extends Description

A text-based description.

Author:
Yvonne Wang, Alex Ruiz

Constructor Summary
TextDescription(String value)
          Creates a new TextDescription.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String value()
          Returns the value of this description.
 
Methods inherited from class org.fest.assertions.description.Description
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextDescription

public TextDescription(String value)
Creates a new TextDescription.

Parameters:
value - the value of this description.
Throws:
NullPointerException - if the given value is null.
Method Detail

value

public final String value()
Returns the value of this description.

Specified by:
value in class Description
Returns:
the value of this description.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.