java.lang.NoClassDefFoundError: groovy/lang/GroovyObject (issue for Rest Assured project in Eclipse)
Code: import org.testng.annotations.Test; import io.restassured.RestAssured; import io.restassured.response.Response; public class AppTest { @Test public void test_01() { Response response = RestAssured.get("https://reqres.in/api/users?page=2"); System.out.println(response.getStatusCode()); System.out.println(response.getTime()); } } ...................................................................................................................... Error message: [RemoteTestNG] detected TestNG version 6.14.3 FAILED: test_01 java.lang.NoClassDefFoundError: groovy/lang/GroovyObject at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown S