Class MessageListAssertion
java.lang.Object
org.carrot2.labs.test.MessageListAssertion
-
Constructor Summary
ConstructorsConstructorDescriptionMessageListAssertion(List<Message> actual) Creates aMessagelist assertion object. -
Method Summary
Modifier and TypeMethodDescriptionAsserts that the current message list contains (at least) the specified messages.Does not have messages of level.isEmpty()Checks if is empty.isEquivalentTo(List<Message> expected) Asserts that the current message list is equivalent to the provided expected message list.isEquivalentTo(Message... messages) Asserts that the current message list is equivalent to the provided expected message list.isEquivalentTo(Message.MessageLevel onlyLevel, List<Message> expected) Asserts that the current message list is equivalent to the provided expected message list.isEquivalentTo(Message.MessageLevel onlyLevel, Message... messages) Asserts that the current message list is equivalent to the provided expected message list.
-
Constructor Details
-
MessageListAssertion
-
-
Method Details
-
contains
Asserts that the current message list contains (at least) the specified messages.- Parameters:
messages- the messages- Returns:
- the message list assertion
-
isEquivalentTo
Asserts that the current message list is equivalent to the provided expected message list.- Parameters:
expected- the expected- Returns:
- the message list assertion
-
isEquivalentTo
Asserts that the current message list is equivalent to the provided expected message list.- Parameters:
onlyLevel- the only levelexpected- the expected- Returns:
- the message list assertion
-
isEquivalentTo
Asserts that the current message list is equivalent to the provided expected message list.- Parameters:
messages- the messages- Returns:
- the message list assertion
-
isEquivalentTo
Asserts that the current message list is equivalent to the provided expected message list.- Parameters:
onlyLevel- the only levelmessages- the messages- Returns:
- the message list assertion
-
doesNotHaveMessagesOfLevel
Does not have messages of level.- Parameters:
level- the level- Returns:
- the message list assertion
-
isEmpty
-