package com.engine.htsc.workflow.cmd;

import com.alibaba.fastjson.JSONObject;
import org.junit.Assert;
import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

public class DesignedProcessorCmdTest {

    @Test
    public void test(){
        Map<String, String> tjMap = new HashMap<>();
        Map<String, Object> inputMap = new HashMap<>();
        tjMap.put("6949","0");
        tjMap.put("6950","0");
        tjMap.put("6966","15");
        inputMap.put("lcId", 24);
        inputMap.put("userIds", 8332);
        inputMap.put("tjMap", JSONObject.toJSONString(tjMap));
        DesignedProcessorCmd designedProcessorCmd = new DesignedProcessorCmd(inputMap);
        Map<String, Object> result = designedProcessorCmd.execute(null);
        Assert.assertNotNull(result);
    }
}
