<dependency>
<groupId>com.objectfanatics</groupId>
<artifactId>object-fanatics-assertion-library</artifactId>
<version>1.0.0</version>
</dependency>
public class Person {
@AssertEquals(expected = "John Doe")
private String name;
public Person(String name) {
this.name = name;
}
// Getter and setter methods
}
public class Main {
public static void main(String[] args) {
Person person = new Person("John Doe");
Assertions.assertAll(person);
}
}