@Test public void shouldGetColumnTypeAsTextForProduct() { RnrColumn rnrColumn = new RnrColumn(); rnrColumn.setName("product"); assertThat(rnrColumn.getColumnType(), is(ColumnType.TEXT)); }
@Override public ColumnType getColumnType() { if (this.getName().equals("price") || this.getName().equals("cost")) { return ColumnType.CURRENCY; } if (this.getName().equals("product") || this.getName().equals("dispensingUnit") || this.getName().equals("productCode")) { return ColumnType.TEXT; } if (this.getName().equals("skipped")) { return ColumnType.BOOLEAN; } return ColumnType.NUMERIC; }
RnrColumn extends Column { @Override public ColumnType getColumnType() { if (this.getName().equals("price") || this.getName().equals("cost")) { return ColumnType.CURRENCY; } if (this.getName().equals("product") || this.getName().equals("dispensingUnit") || this.getName().equals("productCode")) { return ColumnType.TEXT; } if (this.getName().equals("skipped")) { return ColumnType.BOOLEAN; } return ColumnType.NUMERIC; } }
RnrColumn extends Column { @Override public ColumnType getColumnType() { if (this.getName().equals("price") || this.getName().equals("cost")) { return ColumnType.CURRENCY; } if (this.getName().equals("product") || this.getName().equals("dispensingUnit") || this.getName().equals("productCode")) { return ColumnType.TEXT; } if (this.getName().equals("skipped")) { return ColumnType.BOOLEAN; } return ColumnType.NUMERIC; }  }
RnrColumn extends Column { @Override public ColumnType getColumnType() { if (this.getName().equals("price") || this.getName().equals("cost")) { return ColumnType.CURRENCY; } if (this.getName().equals("product") || this.getName().equals("dispensingUnit") || this.getName().equals("productCode")) { return ColumnType.TEXT; } if (this.getName().equals("skipped")) { return ColumnType.BOOLEAN; } return ColumnType.NUMERIC; }  @SuppressWarnings(value = "unused") void setSourceString(String sourceString); @SuppressWarnings(value = "unused") void setOptions(String opt); @Override Integer getColumnWidth(); @Override ColumnType getColumnType(); @Override boolean equals(Object o); @Override int hashCode(); }
RnrColumn extends Column { @Override public ColumnType getColumnType() { if (this.getName().equals("price") || this.getName().equals("cost")) { return ColumnType.CURRENCY; } if (this.getName().equals("product") || this.getName().equals("dispensingUnit") || this.getName().equals("productCode")) { return ColumnType.TEXT; } if (this.getName().equals("skipped")) { return ColumnType.BOOLEAN; } return ColumnType.NUMERIC; }  @SuppressWarnings(value = "unused") void setSourceString(String sourceString); @SuppressWarnings(value = "unused") void setOptions(String opt); @Override Integer getColumnWidth(); @Override ColumnType getColumnType(); @Override boolean equals(Object o); @Override int hashCode();  }