package de.antco.projekt.model;

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

class VehicleTest {
    @Test
    void testConstructorAndGetters() {
        Vehicle v = new Vehicle(1, 10, "Brand", "Model", "Plate");
        assertEquals(1, v.getId());
        assertEquals(10, v.getPersonId());
        assertEquals("Brand", v.getBrand());
        assertEquals("Model", v.getModel());
        assertEquals("Plate", v.getPlate());
    }

    @Test
    void testToString() {
        Vehicle v = new Vehicle(1, 10, "VW", "Golf", "ABC-123");
        String s = v.toString();
        assertTrue(s.contains("VW"));
        assertTrue(s.contains("Golf"));
        assertTrue(s.contains("ABC-123"));
    }
}
