@Test public void testInvalidTransformation() throws Exception { try { DataTypeTransformer.getDate(Integer.valueOf(1)); fail("exception expected"); } catch (SQLException e) { assertEquals("Unable to transform the column value 1 to a Date.", e.getMessage()); } }
static final Date getDate(Object value) throws SQLException { return transform(value, Date.class); }
DataTypeTransformer { static final Date getDate(Object value) throws SQLException { return transform(value, Date.class); } }
DataTypeTransformer { static final Date getDate(Object value) throws SQLException { return transform(value, Date.class); } private  DataTypeTransformer(); }
DataTypeTransformer { static final Date getDate(Object value) throws SQLException { return transform(value, Date.class); } private  DataTypeTransformer();  }
DataTypeTransformer { static final Date getDate(Object value) throws SQLException { return transform(value, Date.class); } private  DataTypeTransformer();   }