Package org.jboss.serial.data.proxy

Examples of org.jboss.serial.data.proxy.InterfaceForProxy.doSomething()


    public void testJavaSerialization() throws Exception
    {
        InterfaceForProxy proxy = createProxy();

        assertEquals(6,proxy.doSomething());


        ByteArrayOutputStream byteout = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream (byteout);
        out.writeObject(proxy);
View Full Code Here


        ObjectOutputStream out = new ObjectOutputStream (byteout);
        out.writeObject(proxy);
        out.flush();
        ObjectInputStream inp = new ObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
        InterfaceForProxy proxy2 = (InterfaceForProxy)inp.readObject();
        assertEquals(6,proxy2.doSomething());
    }

    public void testJBossSerialization() throws Exception
    {
        InterfaceForProxy proxy = createProxy();
View Full Code Here

    public void testJBossSerialization() throws Exception
    {
        InterfaceForProxy proxy = createProxy();

        assertEquals(6,proxy.doSomething());


        ByteArrayOutputStream byteout = new ByteArrayOutputStream();
        JBossObjectOutputStream out = new JBossObjectOutputStream (byteout);
        out.writeObject(proxy);
View Full Code Here

        JBossObjectOutputStream out = new JBossObjectOutputStream (byteout);
        out.writeObject(proxy);
        out.flush();
        JBossObjectInputStream inp = new JBossObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
        InterfaceForProxy proxy2 = (InterfaceForProxy)inp.readObject();
        assertEquals(6,proxy2.doSomething());
    }

    private InterfaceForProxy createProxy() {
        ProxiedClass proxyClass = new ProxiedClass(2);
        assertEquals(2,proxyClass.doSomething());
View Full Code Here

    public void testJavaSerialization() throws Exception
    {
        InterfaceForProxy proxy = createProxy();

        assertEquals(6,proxy.doSomething());


        ByteArrayOutputStream byteout = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream (byteout);
        out.writeObject(proxy);
View Full Code Here

        ObjectOutputStream out = new ObjectOutputStream (byteout);
        out.writeObject(proxy);
        out.flush();
        ObjectInputStream inp = new ObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
        InterfaceForProxy proxy2 = (InterfaceForProxy)inp.readObject();
        assertEquals(6,proxy2.doSomething());
    }

    public void testJBossSerialization() throws Exception
    {
        InterfaceForProxy proxy = createProxy();
View Full Code Here

    public void testJBossSerialization() throws Exception
    {
        InterfaceForProxy proxy = createProxy();

        assertEquals(6,proxy.doSomething());


        ByteArrayOutputStream byteout = new ByteArrayOutputStream();
        JBossObjectOutputStream out = new JBossObjectOutputStream (byteout);
        out.writeObject(proxy);
View Full Code Here

        JBossObjectOutputStream out = new JBossObjectOutputStream (byteout);
        out.writeObject(proxy);
        out.flush();
        JBossObjectInputStream inp = new JBossObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
        InterfaceForProxy proxy2 = (InterfaceForProxy)inp.readObject();
        assertEquals(6,proxy2.doSomething());
    }

    private InterfaceForProxy createProxy() {
        ProxiedClass proxyClass = new ProxiedClass(2);
        assertEquals(2,proxyClass.doSomething());
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.