Skip to content

Tag: rest-assured

what is “def” in Java class

Currently, I am using RestAssured for API automation in my project. As we know, it is a Java Project. When I look at the code of class named “TestSpecificationImpl” in Rest-Assured API. I can see that, it is using methods like: I heard about the concept of local variable type inference in java. Bu…

Lombok returns null as a value of response

I’ve got a problem with my Api tests. When i’m trying to get data from api, lombok returns null as an acceptance value, but there are values with real numbers in api. Screenchot: https://prnt.sc/w98nt2 My DTO for the responce: My steps that extacts body and send post request public class PositionS…

How to set boundary in RestAssured

I’m trying to create multipart POST call using RestAssured, but I don’t know how to get any boundary there. I tried this code, but it doesn’t work. Log Wanted result: So, how do I get ——WebKitFormBoundary123 in the request multipart form? UPDATE: If I use this: I will get this, w…