Package org.carrot2.labs.test
Class MessageAssertion
java.lang.Object
org.carrot2.labs.test.MessageAssertion
Assertions on
Messages.-
Constructor Summary
ConstructorsConstructorDescriptionMessageAssertion(org.carrot2.labs.smartsprites.message.Message actual) Creates aMessageassertion object. -
Method Summary
Modifier and TypeMethodDescriptionAs.isEquivalentTo(org.carrot2.labs.smartsprites.message.Message expected) Asserts that the current message is equivalent to the provided expected message.
-
Constructor Details
-
MessageAssertion
public MessageAssertion(org.carrot2.labs.smartsprites.message.Message actual) Creates aMessageassertion object.- Parameters:
actual- the actual
-
-
Method Details
-
isEquivalentTo
Asserts that the current message is equivalent to the provided expected message.- Parameters:
expected- the expected- Returns:
- the message assertion
-
as
As.- Parameters:
description- the description- Returns:
- the message assertion
-