package org.bdware.sc.test.synctest;


import com.google.gson.JsonPrimitive;
import org.bdware.sc.redo.TransRecord;

public class TransRecordTest {
    static TransRecord currentTransRecord = new TransRecord("myFun", new JsonPrimitive("myArg"));

    public static void main(String[] args) {
//        currentTransRecord.executes.put("k1","v1");
//        currentTransRecord.executes.put("k2","v2");
//        currentTransRecord.executes.put("k3","v3");
//
//        System.out.println("发送一个TransRecord\n" + currentTransRecord.toString());
//
//        String str1 = currentTransRecord.transferToString();
//
//        try {
//            byte[] bytes = str1.getBytes("UTF-8");
//
//            try {
//                String re = new String(bytes, "UTF-8");
//                TransRecord transRecord = TransRecord.loadFromStr(re);
//
//                System.out.println("收到一个TransRecord\n" + transRecord.toString());
//
//            } catch (UnsupportedEncodingException e) {
//                e.printStackTrace();
//            }
//
//
//
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }

    }
}
