wuxw
2019-07-11 b3f85b60ba9e39572e686009d36b5e5d7e81e910
java110-logAgent/src/test/java/com/java110/AppTest.java
@@ -2,6 +2,8 @@
import static org.junit.Assert.assertTrue;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPath;
import com.java110.core.context.DataFlow;
import com.java110.core.context.TransactionLog;
import org.junit.Test;
@@ -25,9 +27,12 @@
    @Test
    public void testDataFlow(){
        TransactionLog transactionLog = new DataFlow(new Date(),"0000");
        transactionLog.reBuilder("234","234324","F");
        /*TransactionLog transactionLog = new DataFlow(new Date(),"0000");
        transactionLog.reBuilder("234","234324","F",0);
        System.out.println(transactionLog.toString());
        System.out.println(transactionLog.toString());*/
        JSONObject order = JSONObject.parseObject("{\"orders\":{\"response1\":{\"code\":\"1999\"}}}");
        System.out.println(JSONPath.eval(order,"$.orders.response.code"));
    }
}