@Test public void deleteShouldReturn403WhenLoggedAsclient() { existingId = 5L; given() //isso serve para especificar o tipo da informação .header("Authorization", "Bearer " + clientToken) .when() .delete("/products/{id}", existingId) .then() .statusCode(403); }
Atualizado há 7 meses