package org.jeecg.modules.mdcJc; import org.jeecg.JeecgSystemApplication; import org.jeecg.modules.mdc.util.DateUtils; import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; import org.jeecg.modules.mdcJc.service.IMdcClassMonthService; import org.jeecg.modules.mdcJc.service.IMdcProductMonthScheduleService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; /** * @author clown * * @date 2024/7/16 */ @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeecgSystemApplication.class) public class MesTest { @Autowired private IClassMonthlyscheduleService mesInfoInMdcService; @Autowired private IMdcClassMonthService mdcClassMonthService; @Autowired private IMdcProductMonthScheduleService mdcProductMonthScheduleService; @Test public void scheduleProductMonthList() { mdcProductMonthScheduleService.scheduleProductMonthList(); } @Test public void classMonthSchedule() { mdcClassMonthService.saveOrUpdateClassMonthSchedule(); } @Test public void testQuery() { String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); mesInfoInMdcService.findListClass(date); } }