What steps will reproduce the problem?
1. Write a simple case, say testing 404
@Test
public void testStatusNotFound() {
given().log().all().with().authentication().basic("Blah","BlahhalB").
expect().statusCode(404).when().
get("/notfound");
}
baseURI is already set. My service is up and running
2. Run this in Eclipse as JUnit test
3. Get the following exception :- java.lang.IllegalStateException: Unsupported
cookie spec: ignoreCookies.
Full stacktrace attached. Below is just an excerpt :
java.lang.IllegalStateException: Unsupported cookie spec: ignoreCookies
at org.apache.http.cookie.CookieSpecRegistry.getCookieSpec(CookieSpecRegistry.java:114)
at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:168)
What version of the product are you using? On what operating system?
rest-assured 2.4.0 /Windows 8.1 /Eclipse Kepler with Maven/ Tomcat 8.0.15/
Jersey
Please provide any additional information below.
I get the same exception with POST as well, and also when I disable basic auth.
Original issue reported on code.google.com by dev.inn...@gmail.com on 27 Feb 2015 at 4:11
Original issue reported on code.google.com by
dev.inn...@gmail.com
on 27 Feb 2015 at 4:11Attachments: