org.fest.assertions.error
Class ShouldHaveSameSizeAs

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by org.fest.assertions.error.ShouldHaveSameSizeAs
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldHaveSameSizeAs
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a value have certain size failed.

Author:
Nicolas François

Method Summary
static ErrorMessageFactory shouldHaveSameSizeAs(Object actual, Object actualSize, Object expectedSize)
          Creates a new ShouldHaveSameSizeAs.
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldHaveSameSizeAs

public static ErrorMessageFactory shouldHaveSameSizeAs(Object actual,
                                                       Object actualSize,
                                                       Object expectedSize)
Creates a new ShouldHaveSameSizeAs.

Parameters:
actual - the actual value in the failed assertion.
actualSize - the size of actual.
expectedSize - the expected size.
Returns:
the created ErrorMessageFactory.


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