@Test public void testNegativeColspan() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("colspan must be greater than 0"); new Column("column").setColspan(-5); }
public Column setColspan(int colspan) { this.colspan = checkColspan(colspan); return this; }
Column { public Column setColspan(int colspan) { this.colspan = checkColspan(colspan); return this; } }
Column { public Column setColspan(int colspan) { this.colspan = checkColspan(colspan); return this; } Column(String name); }
Column { public Column setColspan(int colspan) { this.colspan = checkColspan(colspan); return this; } Column(String name); String getName(); HorizontalAlignment getHorizontalAlignment(); HorizontalAlignment getTitleHorizontalAlignment(); Column setTitleHorizontalAlignment(HorizontalAlignment titleHorizontalAlignment); Column setHorizontalAlignment(HorizontalAlignment horizontalAlignment); NumberFormat getNumberFormat(); Column setNumberFormat(NumberFormat numberFormat); int getColspan(); Column setColspan(int colspan); }
Column { public Column setColspan(int colspan) { this.colspan = checkColspan(colspan); return this; } Column(String name); String getName(); HorizontalAlignment getHorizontalAlignment(); HorizontalAlignment getTitleHorizontalAlignment(); Column setTitleHorizontalAlignment(HorizontalAlignment titleHorizontalAlignment); Column setHorizontalAlignment(HorizontalAlignment horizontalAlignment); NumberFormat getNumberFormat(); Column setNumberFormat(NumberFormat numberFormat); int getColspan(); Column setColspan(int colspan);  }