Skip to content

Instantly share code, notes, and snippets.

@GuilhermeManzano
Created December 13, 2020 22:02
Show Gist options
  • Save GuilhermeManzano/251fc9c366220bfe286f3535edf250c4 to your computer and use it in GitHub Desktop.
Save GuilhermeManzano/251fc9c366220bfe286f3535edf250c4 to your computer and use it in GitHub Desktop.
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