Class ODataResponseAssertion
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<ODataResponseAssertion,org.apache.olingo.odata2.api.processor.ODataResponse>
-
- de.hybris.platform.odata2services.odata.asserts.ODataResponseAssertion
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<ODataResponseAssertion,org.apache.olingo.odata2.api.processor.ODataResponse>,org.assertj.core.api.Descriptable<ODataResponseAssertion>,org.assertj.core.api.ExtensionPoints<ODataResponseAssertion,org.apache.olingo.odata2.api.processor.ODataResponse>
public class ODataResponseAssertion extends org.assertj.core.api.AbstractAssert<ODataResponseAssertion,org.apache.olingo.odata2.api.processor.ODataResponse>
Assertions forODataResponseclass
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ODataResponseAssertionassertionOf(org.apache.olingo.odata2.api.processor.ODataResponse actual)org.assertj.core.api.StringAssertbody()ODataResponseAssertionhasBody(java.lang.String expectedBody)ODataResponseAssertionhasStatus(int status)ODataResponseAssertionhasStatus(org.apache.olingo.odata2.api.commons.HttpStatusCodes status)ODataResponseAssertionisSuccessful()JsonObjectAssertionjsonBody()-
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Method Detail
-
assertionOf
public static ODataResponseAssertion assertionOf(org.apache.olingo.odata2.api.processor.ODataResponse actual)
-
hasStatus
public ODataResponseAssertion hasStatus(org.apache.olingo.odata2.api.commons.HttpStatusCodes status)
-
hasStatus
public ODataResponseAssertion hasStatus(int status)
-
isSuccessful
public ODataResponseAssertion isSuccessful()
-
hasBody
public ODataResponseAssertion hasBody(java.lang.String expectedBody)
-
jsonBody
public JsonObjectAssertion jsonBody()
-
body
public org.assertj.core.api.StringAssert body()
-
-