}
@Test
public void testConversionEmptyValues() {
DTCellValue dcv1 = new DTCellValue( "" );
DTCellValue dcv2 = new DTCellValue( "" );
DTCellValue dcv3 = new DTCellValue( "" );
DTCellValue dcv4 = new DTCellValue( "" );
DTCellValue dcv5 = new DTCellValue( "" );
DTCellValue dcv6 = new DTCellValue( "" );
DTCellValue dcv7 = new DTCellValue( "" );
DTCellValue dcv8 = new DTCellValue( "" );
CellValue< ? extends Comparable< ? >> cell1 = factory.makeCellValue( at1,
0,
0,
dcv1 );
CellValue< ? extends Comparable< ? >> cell2 = factory.makeCellValue( at2,
0,
1,
dcv2 );
CellValue< ? extends Comparable< ? >> cell3 = factory.makeCellValue( c1,
0,
2,
dcv3 );
CellValue< ? extends Comparable< ? >> cell4 = factory.makeCellValue( c2,
0,
3,
dcv4 );
CellValue< ? extends Comparable< ? >> cell5 = factory.makeCellValue( c3,
0,
4,
dcv5 );
CellValue< ? extends Comparable< ? >> cell6 = factory.makeCellValue( c4,
0,
4,
dcv6 );
CellValue< ? extends Comparable< ? >> cell7 = factory.makeCellValue( a1,
0,
5,
dcv7 );
CellValue< ? extends Comparable< ? >> cell8 = factory.makeCellValue( a2,
0,
6,
dcv8 );
assertEquals( cell1.getValue(),
null );
assertEquals( cell2.getValue(),
Boolean.FALSE );
assertEquals( cell3.getValue(),
null );
assertEquals( cell4.getValue(),
null );
assertEquals( cell5.getValue(),
null );
assertEquals( cell6.getValue(),
Boolean.FALSE );
assertEquals( cell7.getValue(),
null );
assertEquals( cell8.getValue(),
null );
assertEquals( dcv1.getDataType(),
DTDataTypes.NUMERIC );
assertEquals( dcv2.getDataType(),
DTDataTypes.BOOLEAN );
assertEquals( dcv3.getDataType(),
DTDataTypes.STRING );
assertEquals( dcv4.getDataType(),
DTDataTypes.NUMERIC );
assertEquals( dcv5.getDataType(),
DTDataTypes.DATE );
assertEquals( dcv6.getDataType(),
DTDataTypes.BOOLEAN );
assertEquals( dcv7.getDataType(),
DTDataTypes.STRING );
assertEquals( dcv8.getDataType(),
DTDataTypes.STRING );
}