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

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

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

@DisplayName("DrugIncompatibilityStandardRules")
class DrugIncompatibilityStandardRulesTest
{

    @Test
    @DisplayName("kb 守卫")
    void kb()
    {
        assertTrue(DrugIncompatibilityStandardRules.isValidKbSyncStatus(0));
        assertTrue(DrugIncompatibilityStandardRules.isValidKbSyncStatus(1));
        assertFalse(DrugIncompatibilityStandardRules.isValidKbSyncStatus(null));

        assertTrue(DrugIncompatibilityStandardRules.canEdit(0));
        assertFalse(DrugIncompatibilityStandardRules.canEdit(1));

        assertTrue(DrugIncompatibilityStandardRules.canDelete(0));
        assertFalse(DrugIncompatibilityStandardRules.canDelete(1));

        assertTrue(DrugIncompatibilityStandardRules.canSyncKb(0));
        assertFalse(DrugIncompatibilityStandardRules.canSyncKb(1));

        assertTrue(DrugIncompatibilityStandardRules.canRemoveKb(1));
        assertFalse(DrugIncompatibilityStandardRules.canRemoveKb(0));
    }
}
