Class ResultActions
java.lang.Object
com.codename1.backend.test.ResultActions
-
Method Summary
Modifier and TypeMethodDescriptionandDo(ResultHandler handler) andExpect(ResultMatcher matcher) Asserts one expectation, throwing AssertionError when it fails.andExpectAll(ResultMatcher... matchers) Asserts every expectation, reporting all the failures together.
-
Method Details
-
andExpect
Asserts one expectation, throwing AssertionError when it fails.- Throws:
Exception
-
andExpectAll
Asserts every expectation, reporting all the failures together. A matcher that throws -- a body that is not JSON, a header that is not a number -- is one of the failures and the rest still run; anErrorother than an assertion failure still ends the run.- Throws:
Exception
-
andDo
- Throws:
Exception
-
andReturn
-