sahaya / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

get() without params cause exception in RestAssuredMockMvc #296

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
given().
            standaloneSetup(new MyController()).
when().
            get().
then().
...

Exception: java.lang.IllegalArgumentException: 'uri' must not be empty
Solution: Change get() impl to delagate to get("/x") instead of get("");

Original issue reported on code.google.com by johan.ha...@gmail.com on 15 Jan 2014 at 1:22

GoogleCodeExporter commented 9 years ago
Another solution might be to change default basePath to "/"

Original comment by johan.ha...@gmail.com on 15 Jan 2014 at 1:47

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 18 Jan 2014 at 10:39