Package net.buffalo.protocal.converters.basic

Examples of net.buffalo.protocal.converters.basic.NullConverter.canConvert()


  }
 
  public void testShouldOutputNull() {
    NullConverter serializer = new NullConverter();
    assertEquals("<null></null>", marshal(serializer, null));
    assertTrue(serializer.canConvert(null));
    assertFalse(serializer.canConvert(ArrayList.class));
  }
 
  public void testShouldOutputString() {
    StringConverter serializer = new StringConverter();
View Full Code Here


 
  public void testShouldOutputNull() {
    NullConverter serializer = new NullConverter();
    assertEquals("<null></null>", marshal(serializer, null));
    assertTrue(serializer.canConvert(null));
    assertFalse(serializer.canConvert(ArrayList.class));
  }
 
  public void testShouldOutputString() {
    StringConverter serializer = new StringConverter();
    assertEquals("<string>hello, world</string>", marshal(serializer, "hello, world"));
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.