use of io.restassured.internal.filter.FormAuthFilter in project rest-assured by rest-assured.
the class FilterITest method filterWorks.
@Test
public void filterWorks() throws Exception {
final FormAuthFilter filter = new FormAuthFilter();
filter.setUserName("John");
filter.setPassword("Doe");
given().filter(filter).expect().statusCode(200).body(equalTo("OK")).when().get("/formAuth");
}
Aggregations