diff --git a/dsms-engine-application/src/test/java/com/dsms/common/constat/CompareTypeEnumTest.java b/dsms-engine-application/src/test/java/com/dsms/common/constat/CompareTypeEnumTest.java new file mode 100644 index 0000000000000000000000000000000000000000..b51e0353789694861bfe1fbcf47a290e4f1b404a --- /dev/null +++ b/dsms-engine-application/src/test/java/com/dsms/common/constat/CompareTypeEnumTest.java @@ -0,0 +1,19 @@ +package com.dsms.common.constat; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import com.dsms.common.constant.CompareTypeEnum; +import org.junit.jupiter.api.Test; + +class CompareTypeEnumTest { + + @Test + void testGetByCode() { + assertEquals(CompareTypeEnum.EQUAL, CompareTypeEnum.getCompareType(0)); + } + + @Test + void testGetWrongCode() { + assertEquals(CompareTypeEnum.UNKNOWN, CompareTypeEnum.getCompareType(100)); + } +}