AnalysisImfApplicationTests.java 1.4 KB
package com.sy;

import com.sy.bwAnalysis.AnalysisRoute;
import com.sy.logic.LiftBar;
import com.sy.utils.XMLThreadPoolFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.concurrent.ThreadPoolExecutor;

@RunWith(SpringRunner.class)
@SpringBootTest
public class AnalysisImfApplicationTests {

    private static String message = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
            "<MSG><META><SNDR>KAO</SNDR><RCVR></RCVR><SEQN>20220117192051</SEQN><DDTM>20220117192051</DDTM><TYPE>KAKO</TYPE><STYP>CARM</STYP></META><COMMAND_INFO AREA_ID=\"4604499001\" CHNL_NO=\"4604444412\" I_E_TYPE=\"E\" SEQ_NO=\"20220117192014000017\"><CHECK_RESULT>00000000100000000000</CHECK_RESULT><OP_HINT>直接放行</OP_HINT><SEAL><ESEAL_ID>CNSM2816998419</ESEAL_ID><SEAL_KEY>1234567890</SEAL_KEY><OPEN_TIMES/><ESEAL_IC_NO/></SEAL><SZ_MSG/></COMMAND_INFO></MSG>";
    private static ThreadPoolExecutor threadPoolEs = XMLThreadPoolFactory.instance("kakou");
    private AnalysisRoute analysisRoute=new AnalysisRoute();
    @Test
    public void contextLoads() {
        analysisRoute.setMessage(message);
        threadPoolEs.execute(analysisRoute);

        LiftBar.sendData("1","aaa",true);

        System.out.println("99");
    }

    @Test
    public void importDlv(){
        //进港提货测试

    }


}