Package net.buffalo.protocal.converters.basic

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


   
  }
 
  public void testDoubleSerializerCanOutputFloatAndDouble() throws Exception {
    DoubleConverter ds = new DoubleConverter();
    assertTrue(ds.canConvert(Double.class));
    assertTrue(ds.canConvert(Float.class));
  }
 
  public void testShouldOutputLong() {
    LongConverter serializer = new LongConverter();
View Full Code Here


  }
 
  public void testDoubleSerializerCanOutputFloatAndDouble() throws Exception {
    DoubleConverter ds = new DoubleConverter();
    assertTrue(ds.canConvert(Double.class));
    assertTrue(ds.canConvert(Float.class));
  }
 
  public void testShouldOutputLong() {
    LongConverter serializer = new LongConverter();
    assertEquals("<long>123</long>", marshal(serializer, new Long(123)));
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.