### Question:
BorderLayout extends VLayout { public void setCenterMember(Canvas member) { if (member == null) { center.setWidth(0); center.setHeight(0); center.setMembers(); } else { member.setHeight("100%"); member.setWidth("100%"); center.setWidth("100%"); center.setMembers(member); } } BorderLayout(); Canvas getCenterMember(); void setCenterMember(Canvas member); Canvas getNorthMember(); void setNorthMember(Canvas member); Canvas getSouthMember(); void setSouthMember(Canvas member); Canvas getWestMember(); void setWestMember(Canvas member); Canvas getEastMember(); void setEastMember(Canvas member);  }### Answer:
@Test public void test_resizesCenterMemberToFull() { Canvas member = new Canvas(); borderLayout.setCenterMember(member); assertEquals("100%", member.getWidthAsString()); assertEquals("100%", member.getHeightAsString()); }
@Test public void test_resizesCenterHolderToAutoFit() { borderLayout.setCenterMember(new Canvas()); assertEquals("100%", getCenterHolder().getWidthAsString()); }
@Test public void test_resizesCenterHolderToNothingIfMemberIsNull() { borderLayout.setCenterMember(new Canvas()); borderLayout.setCenterMember(null); assertEquals(Integer.valueOf(0), getCenterHolder().getAttributeAsInt("width")); assertEquals(Integer.valueOf(0), getCenterHolder().getAttributeAsInt("height")); }