Sir, this is my code
RestAssured.baseURI = "http://10.0.0.153:8000/api/employeeManagement/employee";
RequestSpecification httpRequest = RestAssured.given();
httpRequest.header("Authorization", "Bearer " + token);
Response response = httpRequest.request(Method.GET, "/employeeList");
String responseBody = response.getBody().asString();
System.out.println("Response for List: " + response.body().asString());
I cannot pass directly your code.If i enter your code
(i).The method given() is undefined for the type
(ii).token cannot be resolved to a variable