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. What could I be doing wrong ?
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public void testStatusNotFound() {
given().log().all().with().authentication().basic("Blah","BlahhalB").
expect().statusCode(404).when().
get("/notfound").then().log().all();
}public void testStatusNotFound() {
given().log().all().with().authentication().basic("Blah","BlahhalB").
expect().log().all().statusCode(404).when().
get("/notfound").then().log().all();
}I see <terminated> in junit runner inside eclipse. So I guess it simply exits, post this exception and doesn't appear to be hung up
Ok. I really can't make much sense of what's causing this. Perhaps you can use wireshark to really figure out what's happening on the wire? In wireshark you could also compare the rest assured request with the postman request and see what's differenwast (if the latter worked)./Johan