Skip to content

Commit

Permalink
Merge pull request #523 from Azquelt/optional-format
Browse files Browse the repository at this point in the history
Don't test format parameter
  • Loading branch information
Azquelt committed Apr 14, 2022
2 parents 549f7e8 + 2b47f6a commit f537bfc
Showing 1 changed file with 0 additions and 17 deletions.
Expand Up @@ -39,7 +39,6 @@
import org.testng.annotations.Test;

import io.restassured.response.ValidatableResponse;
import jakarta.ws.rs.core.MediaType;

public class PetStoreAppTest extends AppTestBase {
@Deployment(name = "petstore")
Expand Down Expand Up @@ -209,22 +208,6 @@ public void testDefaultResponseType() {
.body("openapi", startsWith("3.0."));
}

@RunAsClient
@Test
public void testJsonResponseTypeWithQueryParameter() {
given()
.noFilters()
.queryParam("format", "JSON")
.when().get("/openapi")
.then()
.assertThat()
.contentType(MediaType.APPLICATION_JSON)
.and()
.statusCode(200)
.and()
.body("openapi", startsWith("3.0."));
}

@RunAsClient
@Test(dataProvider = "formatProvider")
public void testRequestBodySchema(String type) {
Expand Down

0 comments on commit f537bfc

Please sign in to comment.