2526272829303132333435
@Test public void shouldApplyChanges() throws Exception { setUpPanel(); MockTextAccessor accessor = new MockTextAccessor(); panel.textAccessor = accessor; attribute.applyChange(panel, null); assertEquals(true, accessor.markAsDirtyCalled);
8990919293949596979899
} protected void checkFontChange() throws Exception { setUpPanel(); MockTextAccessor accessor = new MockTextAccessor(); panel.textAccessor = accessor; attribute.applyChange(panel, null); assertEquals(true, panel.sizeChangePending);
104105106107108109110111112113114
} protected void checkAlignmentChange() throws Exception { setUpPanel(); MockTextAccessor accessor = new MockTextAccessor(); panel.textAccessor = accessor; attribute.applyChange(panel, null); assertEquals(true, accessor.markAsNeedingLayoutCalled);