Class ContentResultMatchers
java.lang.Object
com.codename1.backend.test.ContentResultMatchers
Expectations of the response body, from
MockMvcResultMatchers.content().-
Method Summary
Modifier and TypeMethodDescriptionbytes(byte[] expected) The body is exactly these bytes.contentType(String expected) The Content-Type is this one, parameters included when it names any:application/jsonmatchesapplication/json;charset=utf-8, which a stricter test names in full.contentTypeCompatibleWith(String expected) The Content-Type's type and subtype are compatible with this one;application/*and*/*match anything in their range.The body is JSON holding everythingexpecteddoes; objects may carry more fields.The body is exactly this text.
-
Method Details
-
string
The body is exactly this text. -
bytes
The body is exactly these bytes. -
contentType
The Content-Type is this one, parameters included when it names any:application/jsonmatchesapplication/json;charset=utf-8, which a stricter test names in full. -
contentTypeCompatibleWith
The Content-Type's type and subtype are compatible with this one;application/*and*/*match anything in their range. -
json
The body is JSON holding everythingexpecteddoes; objects may carry more fields.json(String, boolean)withtrueasks for exact equality. -
json
-