Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serenity restassured- Issues in builder class() #2898

Closed
Vijay2871 opened this issue Aug 24, 2022 · 2 comments
Closed

Serenity restassured- Issues in builder class() #2898

Vijay2871 opened this issue Aug 24, 2022 · 2 comments

Comments

@Vijay2871
Copy link

Vijay2871 commented Aug 24, 2022

When building the api post request Builder class is not working

@Getter
@Setter
@Jacksonized
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)

public class SFCCGuestAuth {

    @JsonProperty("type")
    private String type;

}

   public static SFCCGuestAuth requestSFCCGuestAuth() {
        return SFCCGuestAuth.builder().type("guest").build();
    }

error: cannot find symbol
return SFCCGuestAuth.builder().type("guest").build();

@wakaleo
Copy link
Member

wakaleo commented Aug 24, 2022

I don't think this is related to the Serenity code - it looks like Lombok is not working for some reason.

@Vijay2871
Copy link
Author

I don't think this is related to the Serenity code - it looks like Lombok is not working for some reason.
added and issue resolved
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
...
}

@wakaleo wakaleo closed this as completed Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants