//package com.qmth.jkserver;
//
//import com.qmth.jkserver.constant.SystemConstant;
//import com.qmth.jkserver.model.ExamThirdOrg;
//import com.qmth.jkserver.util.RandomGUID;
//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.data.mongodb.core.MongoTemplate;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.time.LocalDateTime;
//import java.time.ZoneId;
//import java.util.Date;
//
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class ExamThirdOrgTest {
//
//    @Autowired
//    private MongoTemplate mongoTemplate;
//
//    @Test
//    public void Test() throws Exception {
//        LocalDateTime localDateTime = LocalDateTime.now();
//        localDateTime = localDateTime.plusYears(1);
//        Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
//        ExamThirdOrg examThirdOrg = new ExamThirdOrg(SystemConstant.THIRD_ORG_NAME_HMJL, SystemConstant.THIRD_ORG_CODE_HMJL, new RandomGUID().toString(), new RandomGUID().toString(), date);
//        mongoTemplate.save(examThirdOrg);
//    }
//}
