package org.springblade.mdm.program.service.programannotation; import com.baomidou.mybatisplus.core.toolkit.Assert; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class DefaultProcessorTest { @Test public void testIsCurrentProgramNameAnnotation(){ DefaultProcessor processor = new DefaultProcessor(); String programName = "CP3-1-1-1"; boolean result = processor.isCurrentProgramNameAnnotation("{NOTeprogram}",programName); Assertions.assertFalse(result); result = processor.isCurrentProgramNameAnnotation("(CP3-1-1-1)",programName); Assertions.assertTrue(result); } }