package com.ruoyi.web.modules.diagnosis.support;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

@DisplayName("VetAppointmentStatusResolver")
class VetAppointmentStatusResolverTest
{
    @Test
    @DisplayName("状态标签")
    void labels()
    {
        assertEquals("待确认", VetAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_PENDING));
        assertEquals("已确认", VetAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_CONFIRMED));
        assertEquals("已拒绝", VetAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_REJECTED));
        assertEquals("已取消", VetAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_CANCELLED));
        assertEquals("已完成", VetAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_COMPLETED));
        assertEquals("", VetAppointmentStatusResolver.resolveLabel(5));
    }
}
