Package org.apache.aries.jmx.codec.BundleData

Examples of org.apache.aries.jmx.codec.BundleData.Header


    }

    @Test
    public void testHeaderToCompositeData() throws Exception{
       
        Header h1 = new Header("a", "b");
        CompositeData compositeData = h1.toCompositeData();
      
        assertEquals("a", compositeData.get(KEY));
        assertEquals("b", compositeData.get(VALUE));
       
    }
View Full Code Here


   
    @Test
    public void testHeaderFromCompositeData() throws Exception {
       
        CompositeData compositeData = new CompositeDataSupport(HEADER_TYPE, new String[] { KEY, VALUE } , new String [] { "c", "d" });
        Header header = Header.from(compositeData);
        assertEquals("c", header.getKey());
        assertEquals("d", header.getValue());
       
    }
View Full Code Here

TOP

Related Classes of org.apache.aries.jmx.codec.BundleData.Header

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.