Created
December 13, 2020 22:02
-
-
Save GuilhermeManzano/251fc9c366220bfe286f3535edf250c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Test; | |
import io.restaassured.RestAssured; | |
public class deveRetornarTarefas { | |
@Test | |
public void test() { | |
//no given nos informamos algumas pré condições, when é quando executamos //determinada ação e then ele começa a fazer as assertivas. Vamos retornar o //status 400 para as tarefas. | |
RestAssured.given(). | |
.when().get(“http://localhost:8001/tasks-backend/todo””) | |
.then().statusCode(400) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment