package projetMusee.backend.reports;


import org.junit.Before;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

import static org.junit.Assert.*;

public class ReportConfigurationTest {

    private ReportConfiguration config;
    private List<String> initialFields;

    @Before
    public void setUp() {
        initialFields = Arrays.asList("Nom", "Adresse", "Ville");
        config = new ReportConfiguration(initialFields);
    }

    @Test
    public void testGetReportFields() {
        List<String> fields = config.getReportFields();
        assertEquals(initialFields, fields);
    }

    @Test
    public void testSetReportFields() {
        List<String> newFields = Arrays.asList("Thème", "Région", "Département");
        config.setReportFields(newFields);

        List<String> updatedFields = config.getReportFields();
        assertEquals(newFields, updatedFields);
    }
}

