DTCellValue52 { public Number getNumericValue() { if (!isNumeric()) { valueNumeric = null; } return valueNumeric; } DTCellValue52();  DTCellValue52(final DTCellValue52 sourceCell);  DTCellValue52(final DataTypes type,
                         final boolean emptyValue);  DTCellValue52(final Object value);  DTCellValue52(final BigDecimal value);  DTCellValue52(final BigInteger value);  DTCellValue52(final Byte value);  DTCellValue52(final Double value);  DTCellValue52(final Float value);  DTCellValue52(final Integer value);  DTCellValue52(final Long value);  DTCellValue52(final Short value);  DTCellValue52(final Boolean value);  DTCellValue52(final Date value);  DTCellValue52(final String value); DataType.DataTypes getDataType(); Boolean getBooleanValue(); Date getDateValue(); Number getNumericValue(); String getStringValue(); boolean isOtherwise(); void setBooleanValue(final Boolean value); void setDateValue(final Date value); void setNumericValue(final Number value); void setNumericValue(final BigDecimal value); void setNumericValue(final BigInteger value); void setNumericValue(final Byte value); void setNumericValue(final Double value); void setNumericValue(final Float value); void setNumericValue(final Integer value); void setNumericValue(final Long value); void setNumericValue(final Short value); void setOtherwise(final boolean isOtherwise); void setStringValue(final String value); void clearValues(); boolean hasValue(); @Override int hashCode(); @Override //A clone of this class is used while editing a column. Overriding this method //allows us to easily compare the clone and the original to check if a change //has been made boolean equals(Object obj); DTCellValue52 cloneDefaultValueCell();  }
@Test public void testGetNumericValue() throws Exception { fieldBoolean.set(dcv, true); fieldDate.set(dcv, now); dcv.setNumericValue(1L); fieldString.set(dcv, "woot"); assertEquals(DataType.DataTypes.NUMERIC_LONG, dcv.getDataType()); assertNull(dcv.getBooleanValue()); assertNull(dcv.getDateValue()); assertEquals(1L, dcv.getNumericValue()); assertNull(dcv.getStringValue()); }