Package net.buffalo.protocal.converters.map

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


    mashallingContext = new DefaultMarshallingContext(converterLookup, streamWriter);
  }
 
  public void testShouldSerializeMap() throws Exception {
    MapConverter ms = new MapConverter();
    assertTrue(ms.canConvert(HashMap.class));
    assertFalse(ms.canConvert(null));
   
    Map m = new HashMap();
    m.put("string", "value");
    ms.marshal(m, mashallingContext, streamWriter);
View Full Code Here


  }
 
  public void testShouldSerializeMap() throws Exception {
    MapConverter ms = new MapConverter();
    assertTrue(ms.canConvert(HashMap.class));
    assertFalse(ms.canConvert(null));
   
    Map m = new HashMap();
    m.put("string", "value");
    ms.marshal(m, mashallingContext, streamWriter);
    assertEquals("<map>" +
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.