类 BeanValidatorTest

java.lang.Object
com.publiccms.test.framework.validator.BeanValidatorTest

@DisplayName("css test case") class BeanValidatorTest extends Object
  • 字段详细资料

    • log

      protected final org.apache.commons.logging.Log log
    • validator

      private static jakarta.validation.Validator validator
  • 构造器详细资料

    • BeanValidatorTest

      BeanValidatorTest()
  • 方法详细资料

    • nullTest

      @Test @DisplayName("null test case") void nullTest()
    • widthPx

      @Test @DisplayName("px test case") void widthPx()
    • widthPercent

      @Test @DisplayName("percent test case") void widthPercent()
    • widthRem

      @Test @DisplayName("rem test case") void widthRem()
    • colorHex1

      @Test @DisplayName("hex color test case") void colorHex1()
    • script

      @Test @DisplayName("script test case") void script()
    • split1

      @Test @DisplayName("- test case") void split1()
    • split2

      @Test @DisplayName(", test case") void split2()
    • split3

      @Test @DisplayName("empty string test case") void split3()
    • colorName

      @Test @DisplayName("named color test case") void colorName()
    • colorHex2

      @Test @DisplayName("hex color test case") void colorHex2()
    • colorHex3

      @Test @DisplayName("hex color test case") void colorHex3()
    • colorRgb1

      @Test @DisplayName("hex color test case") void colorRgb1()
    • colorRgba

      @Test @DisplayName("hex color test case") void colorRgba()
    • width

      @Test @DisplayName("hex color test case") void width()
    • testValue

      private void testValue(CssBoxProperties bean)
    • testValue

      private void testValue(String value)
    • testValue

      private void testValue(String value, boolean expectError)
    • assertTrue

      private void assertTrue(Set<jakarta.validation.ConstraintViolation<CssBoxProperties>> set)