Search in sources :

Example 1 with FormAuthFilter

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");
}
Also used : FormAuthFilter(io.restassured.internal.filter.FormAuthFilter) Test(org.junit.Test)

Aggregations

FormAuthFilter (io.restassured.internal.filter.FormAuthFilter)1 Test (org.junit.Test)1