package cn.axzo.msg.center.message.xxl;

import cn.axzo.msg.center.MsgCenterApplication;
import lombok.RequiredArgsConstructor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.Commit;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author yanglin
 */
@SpringBootTest(classes = MsgCenterApplication.class)
@RequiredArgsConstructor(onConstructor_ = @Autowired)
class MigrateMessageTemplateV3JobTest {

    private final MigrateMessageTemplateV3Job migrateMessageTemplateV3Job;

    @Test @Commit @Transactional
    void exec() throws Exception {
        //migrateMessageTemplateV3Job.execute("{\"templateCodes\":[\"8ccc605371144ae4be367d59cba086a6\"]}");
        migrateMessageTemplateV3Job.execute(null);
    }

}