private void removeOtherwiseStates(final BaseColumn column) { final int columnIndex = this.model.getExpandedColumns().indexOf(column); for (List<DTCellValue52> row : this.model.getData()) { final DTCellValue52 dcv = row.get(columnIndex); dcv.setOtherwise(false); } }
private void removeOtherwiseStates(final BaseColumn column) { final int columnIndex = this.model.getExpandedColumns().indexOf(column); for (List<DTCellValue52> row : this.model.getData()) { final DTCellValue52 dcv = row.get(columnIndex); dcv.setOtherwise(false); } }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToDouble(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToBoolean(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToBigDecimal(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToDate(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToLong(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToFloat(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToString(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToBigInteger(dcv)); }
@Test public void conversion() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); assertEquals(expected, cellUtilities.convertToByte(dcv)); }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.STRING, dcv); assertEquals(expected, dcv.getStringValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.NUMERIC_SHORT, dcv); assertEquals(expected, dcv.getNumericValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.NUMERIC_BIGINTEGER, dcv); assertEquals(expected, dcv.getNumericValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.BOOLEAN, dcv); assertEquals(expected, dcv.getBooleanValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.NUMERIC_BYTE, dcv); assertEquals(expected, dcv.getNumericValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.NUMERIC_DOUBLE, dcv); assertEquals(expected, dcv.getNumericValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.NUMERIC_INTEGER, dcv); assertEquals(expected, dcv.getNumericValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.NUMERIC_BIGDECIMAL, dcv); assertEquals(expected, dcv.getNumericValue()); } }
@Test public void conversionToDataType() { final DTCellValue52 dcv = new DTCellValue52(value); dcv.setOtherwise(isOtherwise); cellUtilities.convertDTCellValueType(DataType.DataTypes.DATE, dcv); assertEquals(expected, dcv.getDateValue()); } }