Package com.microsoft.playwright.impl
Class APIResponseAssertionsImpl
java.lang.Object
com.microsoft.playwright.impl.APIResponseAssertionsImpl
- All Implemented Interfaces:
APIResponseAssertions
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAPIResponseAssertionsImpl(APIResponse response) APIResponseAssertionsImpl(APIResponse response, boolean isNot) -
Method Summary
Modifier and TypeMethodDescriptionvoidisOK()Ensures the response status code is within200..299range.(package private) static booleanisTextualMimeType(String mimeType) not()Makes the assertion check for the opposite condition.
-
Field Details
-
actual
-
isNot
private final boolean isNot
-
-
Constructor Details
-
APIResponseAssertionsImpl
APIResponseAssertionsImpl(APIResponse response, boolean isNot) -
APIResponseAssertionsImpl
-
-
Method Details
-
not
Description copied from interface:APIResponseAssertionsMakes the assertion check for the opposite condition. For example, this code tests that the response status is not successful:assertThat(response).not().isOK();- Specified by:
notin interfaceAPIResponseAssertions
-
isOK
public void isOK()Description copied from interface:APIResponseAssertionsEnsures the response status code is within200..299range.**Usage**
assertThat(response).isOK();- Specified by:
isOKin interfaceAPIResponseAssertions
-
isTextualMimeType
-