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("OrgAppointmentStatusResolver")
class OrgAppointmentStatusResolverTest
{
    @Test
    @DisplayName("三态标签")
    void labels()
    {
        assertEquals("已预约", OrgAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_BOOKED));
        assertEquals("已取消", OrgAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_CANCELLED));
        assertEquals("已完成", OrgAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_COMPLETED));
        assertEquals("", OrgAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_PENDING));
        assertEquals("", OrgAppointmentStatusResolver.resolveLabel(ServiceAppointmentRules.STATUS_CONFIRMED));
    }
}
