org.assertj.core.error
Class ShouldHaveContent

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

public class ShouldHaveContent
extends AbstractShouldHaveTextContent

Creates an error message indicating that an assertion that verifies that a file has a given text content failed.

Author:
Olivier Michallat

Field Summary
 
Fields inherited from class org.assertj.core.error.AbstractShouldHaveTextContent
diffs
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldHaveContent(File actual, Charset charset, List<String> diffs)
          Creates a new ShouldHaveContent.
 
Methods inherited from class org.assertj.core.error.AbstractShouldHaveTextContent
create, diffsAsString
 
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, equals, hashCode, toString, unquotedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldHaveContent

public static ErrorMessageFactory shouldHaveContent(File actual,
                                                    Charset charset,
                                                    List<String> diffs)
Creates a new ShouldHaveContent.

Parameters:
actual - the actual file in the failed assertion.
charset - the charset that was used to read the file.
diffs - the differences between actual and the expected text that was provided in the assertion.
Returns:
the created ErrorMessageFactory.


Copyright © 2013–2015 AssertJ. All rights reserved.