@Test public void shouldThrowErrorIfPositionIsNull() throws Exception { EDIFileColumn column = new EDIFileColumn("name", "Label", true, true, null, "dd/mm/yy"); exException.expect(DataException.class); exException.expectMessage("file.invalid.position"); column.validate(); }
public void validate() { if (include && (position == null || position == 0)) { throw new DataException("file.invalid.position"); } }
EDIFileColumn extends BaseModel { public void validate() { if (include && (position == null || position == 0)) { throw new DataException("file.invalid.position"); } } }
EDIFileColumn extends BaseModel { public void validate() { if (include && (position == null || position == 0)) { throw new DataException("file.invalid.position"); } }  }
EDIFileColumn extends BaseModel { public void validate() { if (include && (position == null || position == 0)) { throw new DataException("file.invalid.position"); } }  void validate(); }
EDIFileColumn extends BaseModel { public void validate() { if (include && (position == null || position == 0)) { throw new DataException("file.invalid.position"); } }  void validate();  }