79606499

Date: 2025-05-05 07:37:30
Score: 1.5
Natty:
Report link

Are your dependencies correct? Make sure Lombok is in dependency not testDependencies for instance, this is the latest version from mvnrepository.

<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.38</version>
    <scope>provided</scope>
</dependency>

After you have updated the pom.xml you can run:
mvn clean install

to update the dependencies

Instead of using @Getter and @Setter create a simple POJO in your test case and try and test it like that. Are your test class in the right directory?
src/test/java is the most common directory for test classes.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Getter
  • User mentioned (0): @Setter
  • Low reputation (1):
Posted by: Christian S