}
@Test
public void testConversionEmptyValues() {
DTCellValue52 dcv1 = new DTCellValue52( "" );
DTCellValue52 dcv2 = new DTCellValue52( "" );
DTCellValue52 dcv3 = new DTCellValue52( "" );
DTCellValue52 dcv4 = new DTCellValue52( "" );
DTCellValue52 dcv5 = new DTCellValue52( "" );
DTCellValue52 dcv6 = new DTCellValue52( "" );
DTCellValue52 dcv7 = new DTCellValue52( "" );
DTCellValue52 dcv8 = new DTCellValue52( "" );
DTCellValue52 dcv9 = new DTCellValue52( "" );
DTCellValue52 dcv10 = new DTCellValue52( "" );
DTCellValue52 dcv11 = new DTCellValue52( "" );
DTCellValue52 dcv12 = new DTCellValue52( "" );
DTCellValue52 dcv13 = new DTCellValue52( "" );
DTCellValue52 dcv14 = new DTCellValue52( "" );
DTCellValue52 dcv15 = new DTCellValue52( "" );
CellValue<? extends Comparable<?>> cell1 = factory.convertModelCellValue( at1,
dcv1 );
CellValue<? extends Comparable<?>> cell2 = factory.convertModelCellValue( at2,
dcv2 );
CellValue<? extends Comparable<?>> cell3 = factory.convertModelCellValue( c1,
dcv3 );
CellValue<? extends Comparable<?>> cell4 = factory.convertModelCellValue( c2,
dcv4 );
CellValue<? extends Comparable<?>> cell5 = factory.convertModelCellValue( c3,
dcv5 );
CellValue<? extends Comparable<?>> cell6 = factory.convertModelCellValue( c4,
dcv6 );
CellValue<? extends Comparable<?>> cell7 = factory.convertModelCellValue( c5,
dcv7 );
CellValue<? extends Comparable<?>> cell8 = factory.convertModelCellValue( c6,
dcv8 );
CellValue<? extends Comparable<?>> cell9 = factory.convertModelCellValue( c7,
dcv9 );
CellValue<? extends Comparable<?>> cell10 = factory.convertModelCellValue( c8,
dcv10 );
CellValue<? extends Comparable<?>> cell11 = factory.convertModelCellValue( c9,
dcv11 );
CellValue<? extends Comparable<?>> cell12 = factory.convertModelCellValue( c10,
dcv12 );
CellValue<? extends Comparable<?>> cell13 = factory.convertModelCellValue( c11,
dcv13 );
CellValue<? extends Comparable<?>> cell14 = factory.convertModelCellValue( a1,
dcv14 );
CellValue<? extends Comparable<?>> cell15 = factory.convertModelCellValue( a2,
dcv15 );
assertEquals( cell1.getValue(),
null );
assertEquals( cell2.getValue(),
Boolean.FALSE );
assertEquals( cell3.getValue(),
null );
assertEquals( cell4.getValue(),
null );
assertEquals( cell5.getValue(),
null );
assertEquals( cell6.getValue(),
null );
assertEquals( cell7.getValue(),
null );
assertEquals( cell8.getValue(),
null );
assertEquals( cell9.getValue(),
null );
assertEquals( cell10.getValue(),
null );
assertEquals( cell11.getValue(),
null );
assertEquals( cell12.getValue(),
null );
assertEquals( cell13.getValue(),
Boolean.FALSE );
assertEquals( cell14.getValue(),
null );
assertEquals( cell15.getValue(),
null );
assertEquals( dcv1.getDataType(),
DataType.DataTypes.NUMERIC_INTEGER );
assertEquals( dcv2.getDataType(),
DataType.DataTypes.BOOLEAN );
assertEquals( dcv3.getDataType(),
DataType.DataTypes.STRING );
assertEquals( dcv4.getDataType(),
DataType.DataTypes.NUMERIC_BIGDECIMAL );
assertEquals( dcv5.getDataType(),
DataType.DataTypes.NUMERIC_BIGINTEGER );
assertEquals( dcv6.getDataType(),
DataType.DataTypes.NUMERIC_BYTE );
assertEquals( dcv7.getDataType(),
DataType.DataTypes.NUMERIC_DOUBLE );
assertEquals( dcv8.getDataType(),
DataType.DataTypes.NUMERIC_FLOAT );
assertEquals( dcv9.getDataType(),
DataType.DataTypes.NUMERIC_INTEGER );
assertEquals( dcv10.getDataType(),
DataType.DataTypes.NUMERIC_LONG );
assertEquals( dcv11.getDataType(),
DataType.DataTypes.NUMERIC_SHORT );
assertEquals( dcv12.getDataType(),
DataType.DataTypes.DATE );
assertEquals( dcv13.getDataType(),
DataType.DataTypes.BOOLEAN );
assertEquals( dcv14.getDataType(),
DataType.DataTypes.STRING );
assertEquals( dcv15.getDataType(),
DataType.DataTypes.STRING );
}