public class ContextAssert extends org.assertj.core.api.AbstractAssert<ContextAssert,org.wisdom.api.http.Context>
Context.| Modifier | Constructor and Description |
|---|---|
protected |
ContextAssert(org.wisdom.api.http.Context actual) |
| Modifier and Type | Method and Description |
|---|---|
static ContextAssert |
assertThat(org.wisdom.api.http.Context actual)
Creates a
ContextAssert. |
<T> ContextAssert |
hasBody(Class<T> klass,
T body)
Checks that the actual context has the given body.
|
ContextAssert |
hasBody(String body)
Checks that the actual context has the given body.
|
ContextAssert |
hasBodyMatch(String regex)
Checks that the actual context has a body matching the given regex.
|
ContextAssert |
hasInBody(String inBody)
Checks that the actual context has the given String in its body (i.e.
|
ContextAssert |
hasInSession(String key,
String value)
Checks that the actual context has a given entry in its session.
|
ContextAssert |
hasParameter(String key,
String value)
Checks that the actual context has a given parameter.
|
ContextAssert |
isMultipart()
Checks that the actual context is multipart.
|
ContextAssert |
isNotMultipart()
Checks that the actual context is not multipart.
|
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator, withThreadDumpOnErrorpublic static ContextAssert assertThat(org.wisdom.api.http.Context actual)
ContextAssert.actual - the contextContextAssertpublic ContextAssert hasParameter(String key, String value)
key - the namevalue - the valueContextAssertpublic ContextAssert hasInSession(String key, String value)
key - the namevalue - the valueContextAssertpublic ContextAssert isMultipart()
ContextAssertpublic ContextAssert isNotMultipart()
ContextAssertpublic ContextAssert hasInBody(String inBody)
inBody - the body snippetContextAssertpublic ContextAssert hasBodyMatch(String regex)
regex - the regexContextAssertpublic ContextAssert hasBody(String body)
body - the expected bodyContextAssertpublic <T> ContextAssert hasBody(Class<T> klass, T body)
klass - the body classbody - the expected bodyContextAssertCopyright © 2013–2015 Wisdom Framework. All rights reserved.