package space.nstart.pcp.pcp_mission_planing_service.controller

import jakarta.validation.Validation
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import space.nstart.pcp.pcp_types_lib.dto.routes.SurveyModeStatus

class SurveyModeStatusUpdateRequestTest {

    private val validator = Validation.buildDefaultValidatorFactory().validator

    @Test
    fun `validator accepts enum status field`() {
        val violations = validator.validate(
            SurveyModeStatusUpdateRequest(status = SurveyModeStatus.PROCESSED)
        )

        assertTrue(violations.isEmpty())
    }
}
