//package com.qmth.jkserver.templete.execute;
//
//import com.qmth.jkserver.model.User;
//import com.qmth.jkserver.service.ExamTaskService;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.data.mongodb.core.MongoOperations;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import javax.annotation.Resource;
//import java.io.IOException;
//import java.util.Map;
//
///**
// * @Description:
// * @Author: CaoZixuan
// * @Date:
// */
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class AsyncCloudMarkTempleteServiceTest {
//    @Resource
//    private AsyncCloudMarkTempleteService asyncCloudMarkTempleteService;
//    @Resource
//    MongoOperations mongoTemplate;
//    @Resource
//    ExamTaskService examTaskService;
//
//    @Test
//    public void cloudMarkTask() throws Exception {
////        ExamTask examTask;
////        Query query = new Query();
////        query.addCriteria(Criteria.where("examCode").is("5ftq"));
////        List<ExamTask> examTaskList = mongoTemplate.find(query, ExamTask.class);
////
////        if (examTaskList.size() > 0){
////            examTask = examTaskList.get(0);
////        } else {
////            examTask = new ExamTask();
////            examTask.setExamCode("5ftq");
////        }
//        User user = new User();
//        user.setId("1");
//        user.setRealName("czx");
//        Map<String, Object> map = examTaskService.saveExamTask("5ftq", user, true);
//        asyncCloudMarkTempleteService.cloudMarkTask(map,null);
//    }
//}