Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldHaveNext

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.Iterator

Creates an error message indicating that an assertion that verifies that an Iterator has a next element failed.
Author
Stephan Windmüller

Field Summary

Modifier and TypeField and Description
private static final String
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveNext
()

Creates a new ShouldHaveNext.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Field Detail

SHOULD_HAVE_NEXTback to summary
private static final String SHOULD_HAVE_NEXT

Constructor Detail

ShouldHaveNextback to summary
private ShouldHaveNext()

Method Detail

shouldHaveNextback to summary
public static ErrorMessageFactory shouldHaveNext()

Creates a new ShouldHaveNext.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.