Package org.jgroups.mux

Examples of org.jgroups.mux.MuxHeader


    }



    public static void testMuxHeader() throws Exception {
        MuxHeader hdr=new MuxHeader();
        _testSize(hdr);

        hdr=new MuxHeader("bla");
        _testSize(hdr);

        ServiceInfo si=new ServiceInfo();
        hdr=new MuxHeader(si);
        _testSize(hdr);      
        _testSize(new MuxHeader(si));
    }
View Full Code Here


        _testSize(si);
    }


    public void testMuxHeader() throws Exception {
        MuxHeader hdr=new MuxHeader();
        _testSize(hdr);

        hdr=new MuxHeader("bla");
        _testSize(hdr);

        ServiceInfo si=new ServiceInfo();
        hdr=new MuxHeader(si);
        _testSize(hdr);

        si=new ServiceInfo(ServiceInfo.STATE_REQ, null, null, null);
        _testSize(new MuxHeader(si));

        si=new ServiceInfo(ServiceInfo.STATE_REQ, "bla", null, null);
        _testSize(new MuxHeader(si));

        si=new ServiceInfo(ServiceInfo.STATE_REQ, null, new IpAddress(3333), null);
        _testSize(new MuxHeader(si));

        si=new ServiceInfo(ServiceInfo.STATE_REQ, null, null, new byte[]{'b', 'e', 'l', 'a'});
        _testSize(new MuxHeader(si));

        si=new ServiceInfo(ServiceInfo.STATE_REQ, "bla", new IpAddress(3333), new byte[]{'b', 'e', 'l', 'a'});
        _testSize(new MuxHeader(si));
    }
View Full Code Here

        _testSize(si);    
    }


    public void testMuxHeader() throws Exception {
        MuxHeader hdr=new MuxHeader();
        _testSize(hdr);

        hdr=new MuxHeader("bla");
        _testSize(hdr);

        ServiceInfo si=new ServiceInfo();
        hdr=new MuxHeader(si);
        _testSize(hdr);      
        _testSize(new MuxHeader(si));
    }
View Full Code Here

TOP

Related Classes of org.jgroups.mux.MuxHeader

Copyright © 2018 www.massapicom. 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.