// *************************************************************************
// ******** Resizing operations
// ***************************************
private void doRecalculateSizeExpectations(double mainwidth) {
Dimension2D mainsize = new DoubleDimension(mainwidth, 30);
Dimension2D opsize = new DoubleDimension(35, 10);
Dimension2D mainminsize = new DoubleDimension(50, 30);
Dimension2D opminsize = new DoubleDimension(35, 10);
mockMainCompartment.expects(once()).method("recalculateSize")
.with(eq(mockDrawingContext.proxy()));
mockAttrCompartment.expects(once()).method("recalculateSize")
.with(eq(mockDrawingContext.proxy()));
mockOpCompartment.expects(once()).method("recalculateSize")