org.fest.assertions.error
Class AbstractShouldHaveTextContent

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by org.fest.assertions.error.AbstractShouldHaveTextContent
All Implemented Interfaces:
ErrorMessageFactory
Direct Known Subclasses:
ShouldHaveContent, ShouldHaveEqualContent

public class AbstractShouldHaveTextContent
extends BasicErrorMessageFactory

Base class for text content error.

Author:
Joel Costigliola

Field Summary
protected  String diffs
           
 
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
 
Constructor Summary
AbstractShouldHaveTextContent(String format, Object... arguments)
           
 
Method Summary
 String create(Description d)
          Creates a new error message as a result of a failed assertion.
protected static String diffsAsString(List<String> diffsList)
           
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

diffs

protected String diffs
Constructor Detail

AbstractShouldHaveTextContent

public AbstractShouldHaveTextContent(String format,
                                     Object... arguments)
Method Detail

create

public String create(Description d)
Description copied from class: BasicErrorMessageFactory
Creates a new error message as a result of a failed assertion.

Specified by:
create in interface ErrorMessageFactory
Overrides:
create in class BasicErrorMessageFactory
Parameters:
d - the description of the failed assertion.
Returns:
the created error message.

diffsAsString

protected static String diffsAsString(List<String> diffsList)


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