@Test public void shouldGetColumnWidthAs125ForProduct() { RnrColumn rnrColumn = new RnrColumn(); rnrColumn.setName("product"); assertThat(rnrColumn.getColumnWidth(), is(125)); }
@Override public Integer getColumnWidth() { if (this.name.equals("product")) { return 125; } if (this.name.equals("remarks")) { return 100; } if (this.name.equals("reasonForRequestedQuantity")) { return 100; } return 40; }
RnrColumn extends Column { @Override public Integer getColumnWidth() { if (this.name.equals("product")) { return 125; } if (this.name.equals("remarks")) { return 100; } if (this.name.equals("reasonForRequestedQuantity")) { return 100; } return 40; } }
RnrColumn extends Column { @Override public Integer getColumnWidth() { if (this.name.equals("product")) { return 125; } if (this.name.equals("remarks")) { return 100; } if (this.name.equals("reasonForRequestedQuantity")) { return 100; } return 40; }  }
RnrColumn extends Column { @Override public Integer getColumnWidth() { if (this.name.equals("product")) { return 125; } if (this.name.equals("remarks")) { return 100; } if (this.name.equals("reasonForRequestedQuantity")) { return 100; } return 40; }  @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 Integer getColumnWidth() { if (this.name.equals("product")) { return 125; } if (this.name.equals("remarks")) { return 100; } if (this.name.equals("reasonForRequestedQuantity")) { return 100; } return 40; }  @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();  }