I am facing this issue when I am trying to run the tests using intelliJ (Version 11.0.5) only.(macos). When i run tests using Gradle commands it works fine though.
I noticed I am able to run these test successfully with older gradle dependency for rest-assured library. testCompile('io.rest-assured:rest-assured:3.x.x') how ever we have the current dependency as testCompile('io.rest-assured:rest-assured:4.1.0'). Just wondering what is the issue with running them only in intelliJ as they run fine with regular Gradle build.