package com.ycl.sccgplatform; import com.ycl.controller.video.common.util.UtilNumber; import com.ycl.enums.common.DictTypeEnum; import com.ycl.service.caseHandler.IBaseCaseService; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Map; @SpringBootTest class SccgPlatformApplicationTests { private IBaseCaseService baseCaseService; private UtilNumber utilNumber; @Autowired public void setBaseCaseService(IBaseCaseService baseCaseService) { this.baseCaseService = baseCaseService; } @Autowired public void setUtilNumber(UtilNumber utilNumber) { this.utilNumber = utilNumber; } @Test void contextLoads() { String msg = baseCaseService.processEvent(3); } @Test void createCode() { // LocalDateTime parse = LocalDateTime.parse("2017-02-02 08:59:12", DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss")); LocalDateTime ldt = LocalDateTime.parse("2017-02-02 08:44:12", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); System.out.println(ldt); } @Test void enumMapTest(){ Map s =DictTypeEnum.getAllToMap(); } }