Package net.buffalo.protocal.converters.map

Examples of net.buffalo.protocal.converters.map.MapConverter.marshal()


    assertTrue(ms.canConvert(HashMap.class));
    assertFalse(ms.canConvert(null));
   
    Map m = new HashMap();
    m.put("string", "value");
    ms.marshal(m, mashallingContext, streamWriter);
    assertEquals("<map>" +
        "<type>java.util.HashMap</type>" +
        "<string>string</string>" +
        "<string>value</string>" +
        "</map>", stringWriter.getBuffer().toString());
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.