Package org.carrot2.labs.test
Class Assertions
java.lang.Object
org.carrot2.labs.test.Assertions
FEST-style assertions for SmartSprites-specific data types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImageAssertion
assertThat
(BufferedImage actual) Creates aBufferedImageAssertion
.static MessageListAssertion
assertThat
(List<org.carrot2.labs.smartsprites.message.Message> actual) Creates aMessageListAssertion
.static CssPropertyAssertion
assertThat
(org.carrot2.labs.smartsprites.css.CssProperty actual) Creates aCssPropertyAssertion
.static MessageAssertion
assertThat
(org.carrot2.labs.smartsprites.message.Message actual) Creates aMessageAssertion
.static CssPropertyListAssertion
assertThatCssPropertyList
(List<org.carrot2.labs.smartsprites.css.CssProperty> actual) Creates aCssPropertyListAssertion
.
-
Constructor Details
-
Assertions
public Assertions()
-
-
Method Details
-
assertThat
Creates aMessageAssertion
.- Parameters:
actual
- the actual- Returns:
- the message assertion
-
assertThat
public static MessageListAssertion assertThat(List<org.carrot2.labs.smartsprites.message.Message> actual) Creates aMessageListAssertion
.- Parameters:
actual
- the actual- Returns:
- the message list assertion
-
assertThat
Creates aCssPropertyAssertion
.- Parameters:
actual
- the actual- Returns:
- the css property assertion
-
assertThatCssPropertyList
public static CssPropertyListAssertion assertThatCssPropertyList(List<org.carrot2.labs.smartsprites.css.CssProperty> actual) Creates aCssPropertyListAssertion
.- Parameters:
actual
- the actual- Returns:
- the css property list assertion
-
assertThat
Creates aBufferedImageAssertion
.- Parameters:
actual
- the actual- Returns:
- the buffered image assertion
-