一、添加测试类的依赖
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>

二、编写测试类
@RunWith(SpringRunner.class)
@SpringBootTest(classes = RuoYiApplication.class)
public class TestDepartmentIsrEasyTRack {
@Autowired
private DepartmentIsrEasyTRackMapper departmentIsrEasyTRackMapper;
@Test
public void get1(){
List<DepartmentIrsEasyTrack> allDepartmentInfor = departmentIsrEasyTRackMapper.getAllDepartmentInfor();
System.out.println(allDepartmentInfor);
}
