org.assertj.core.error
Class ShouldHaveLineCount

java.lang.Object
  extended by org.assertj.core.error.BasicErrorMessageFactory
      extended by org.assertj.core.error.ShouldHaveLineCount
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldHaveLineCount
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a value have certain number of lines failed.

Author:
Mariusz Smykula

Field Summary
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldHaveLinesCount(Object actual, int actualSize, int expectedSize)
          Creates a new ShouldHaveLineCount.
 
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, equals, hashCode, toString, unquotedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldHaveLinesCount

public static ErrorMessageFactory shouldHaveLinesCount(Object actual,
                                                       int actualSize,
                                                       int expectedSize)
Creates a new ShouldHaveLineCount.

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


Copyright © 2013–2015 AssertJ. All rights reserved.