Skip to content

Commit

Permalink
change echo
Browse files Browse the repository at this point in the history
  • Loading branch information
Diana01010101 committed Mar 23, 2024
1 parent bf5759f commit f2cb7e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies {
}



test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import io.restassured.response.ValidatableResponse;
package ru.netology.echo;
import org.junit.jupiter.api.Test;

import static io.restassured.RestAssured.given;
Expand All @@ -11,12 +11,12 @@ void shouldReturnSendData() {
var text = "Hi";
given()
.baseUri("https://postman-echo.com")
.body("some data")
.body("Hi")
.when()
.post("/post")
.then()
.statusCode(200)
.body("data", equalTo(text));
.body("data", equalTo("Hi"));
}


Expand Down
Empty file.

0 comments on commit f2cb7e1

Please sign in to comment.