package mes;
|
|
import com.mes.GlassStorageApplication;
|
import com.mes.storagetask.entity.StorageTask;
|
import com.mes.storagetask.service.StorageTaskService;
|
import lombok.extern.slf4j.Slf4j;
|
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;
|
|
import java.util.Arrays;
|
|
/**
|
* @Author : zhoush
|
* @Date: 2024/3/27 16:37
|
* @Description:
|
*/
|
@Slf4j
|
@RunWith(SpringRunner.class)
|
@SpringBootTest(classes = GlassStorageApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
|
public class GlassStorageModuleApplicationTest {
|
|
|
|
@Autowired
|
private StorageTaskService storageTaskService;
|
|
|
@Test
|
public void testFindPath() {
|
log.info("完整路径:{}", Arrays.asList("123"));
|
}
|
|
@Test
|
public void testCacheGlass() {
|
// storageTaskService.getBaseMapper().selectById(1);
|
//StorageTask storageTask=new StorageTask();
|
// storageTask.setId(Long.valueOf("1"));
|
// storageTask.setTaskState("1");
|
// storageTaskService.updateById(storageTask);
|
// storageTaskService.getBaseMapper().deleteById(1);
|
// storageTaskService.findList(storageTask);
|
storageTaskService.findLatestTasks();
|
}
|
|
|
|
|
|
|
|
}
|