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

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

/**
 * AgreementContentSupport 单元测试（MEA-UT-003/021）
 */
class AgreementContentSupportTest
{
    @Test
    void isBlankHtml_emptyTags_true()
    {
        assertTrue(AgreementContentSupport.isBlankHtml("<p></p><br/>"));
        assertTrue(AgreementContentSupport.isBlankHtml("&nbsp;"));
    }

    @Test
    void isBlankHtml_validContent_false()
    {
        assertFalse(AgreementContentSupport.isBlankHtml("<p>入驻条款第一条</p>"));
    }

    @Test
    void isBlankHtml_nullOrEmpty_true()
    {
        assertTrue(AgreementContentSupport.isBlankHtml(null));
        assertTrue(AgreementContentSupport.isBlankHtml(""));
    }
}
