Examples of AppCreateEvent


Examples of com.alibaba.otter.shared.communication.app.event.AppCreateEvent

    }

    @Test
    public void testRmi_createEvent() {// 测试基本类型的序列化
        CommunicationRegistry.regist(AppEventType.create, service);
        AppCreateEvent event = new AppCreateEvent();
        event.setName("rmiEvent");
        event.setIntValue(1);
        event.setBoolValue(false);
        event.setFloatValue(1.0f);
        event.setDoubleValue(1.0d);
        event.setLongValue(1l);
        event.setCharValue('a');
        event.setShortValue((short) 1);
        event.setByteValue((byte) 1);
        event.setIntegerValue(new Integer("1"));
        event.setBoolObjValue(new Boolean("false"));
        event.setFloatObjValue(new Float("1.0"));
        event.setDoubleObjValue(new Double("1.0"));
        event.setLongObjValue(new Long("1"));
        event.setCharacterValue('a');
        event.setShortObjValue(new Short("1"));
        event.setByteObjValue(new Byte("1"));

        Object result = client.call("127.0.0.1:2088", event);// 同步调用
        want.bool((Boolean) result).is(true);
    }
View Full Code Here

Examples of com.alibaba.otter.shared.communication.app.event.AppCreateEvent

    }

    @Test
    public void testRmi_createEvent() {// 测试基本类型的序列化
        CommunicationRegistry.regist(AppEventType.create, service);
        AppCreateEvent event = new AppCreateEvent();
        event.setName("rmiEvent");
        event.setIntValue(1);
        event.setBoolValue(false);
        event.setFloatValue(1.0f);
        event.setDoubleValue(1.0d);
        event.setLongValue(1l);
        event.setCharValue('a');
        event.setShortValue((short) 1);
        event.setByteValue((byte) 1);
        event.setIntegerValue(new Integer("1"));
        event.setBoolObjValue(new Boolean("false"));
        event.setFloatObjValue(new Float("1.0"));
        event.setDoubleObjValue(new Double("1.0"));
        event.setLongObjValue(new Long("1"));
        event.setCharacterValue('a');
        event.setShortObjValue(new Short("1"));
        event.setByteObjValue(new Byte("1"));

        Object result = client.call("127.0.0.1:1099", event);// 同步调用
        want.bool((Boolean) result).is(true);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.