package de.antco.projekt.model;

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;

class PersonTest {

    @Test
    void testConstructorAndGetters() {
        Person p = new Person(1, "Name", "123", "mail@test.com", "Address 1");
        assertEquals(1, p.getId());
        assertEquals("Name", p.getName());
        assertEquals("123", p.getPhone());
        assertEquals("mail@test.com", p.getEmail());
        assertEquals("Address 1", p.getAddress());
    }

    @Test
    void testToString() {
        Person p = new Person(1, "Name", "123", "mail@test.com", "Address 1");
        String s = p.toString();
        assertTrue(s.contains("Name"));
        assertTrue(s.contains("123"));
        assertTrue(s.contains("mail@test.com"));
        assertTrue(s.contains("Address 1"));
    }
}
