Package net.buffalo.protocal.converters

Examples of net.buffalo.protocal.converters.SqlDateConverter.canConvert()


public class SqlDateConverterTest extends TestCase {
  public void testShouldConverterSqlDate() throws Exception {
    java.sql.Date sdate = new java.sql.Date(new java.util.Date(2006-1900, 10, 1).getTime());
    SqlDateConverter converter = new SqlDateConverter();
   
    assertTrue(converter.canConvert(sdate.getClass()));
    assertFalse(converter.canConvert(java.util.Date.class));
   
    StringWriter stringWriter = new StringWriter();
    StreamWriter streamWriter = new FastStreamWriter(stringWriter);
   
View Full Code Here


  public void testShouldConverterSqlDate() throws Exception {
    java.sql.Date sdate = new java.sql.Date(new java.util.Date(2006-1900, 10, 1).getTime());
    SqlDateConverter converter = new SqlDateConverter();
   
    assertTrue(converter.canConvert(sdate.getClass()));
    assertFalse(converter.canConvert(java.util.Date.class));
   
    StringWriter stringWriter = new StringWriter();
    StreamWriter streamWriter = new FastStreamWriter(stringWriter);
   
    DefaultConverterLookup defaultConverterLookup = new DefaultConverterLookup();
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.