List<ColumnInfo> columns = portal.getColumns();
assertThat(columns).hasSize(2);
// test getBounds()
assertEquals(new Rectangle(0, 0, 450, 300), portal.getBounds());
{
ColumnInfo column = columns.get(0);
assertEquals(new Rectangle(10, 0, 151, 300), column.getBounds());
assertEquals(0.7, column.getWidth(), 1E-10);
}
{
ColumnInfo column = columns.get(1);
assertEquals(new Rectangle(171, 0, 190, 300), column.getBounds());
assertEquals(200.0, column.getWidth(), 1E-10);
}
}