@ -0,0 +1,10 @@
public class Dog {
private String name;
private Float weight;
public Dog(String name, double weight) {
}
@ -1,2 +0,0 @@
public class Test {
@ -0,0 +1,15 @@
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.*;
class DogTest {
Dog fido = new Dog("Fido", 5.25);
Dog fidosClone = new Dog("Fido", 5.25);
@Test
void test() {
assertThat(fido).isEqualToComparingFieldByFieldRecursively(fidosClone);
@ -1,5 +0,0 @@
import static org.junit.jupiter.api.Assertions.*;
class TestTest {