* Some checks for the getLabelFont() and setLabelFont() methods.
*/
public void testGetSetLabelFont() {
// we use ValueMarker for the tests, because we need a concrete
// subclass...
ValueMarker m = new ValueMarker(1.1);
m.addChangeListener(this);
this.lastEvent = null;
assertEquals(new Font("SansSerif", Font.PLAIN, 9), m.getLabelFont());
m.setLabelFont(new Font("SansSerif", Font.BOLD, 10));
assertEquals(new Font("SansSerif", Font.BOLD, 10), m.getLabelFont());
assertEquals(m, this.lastEvent.getMarker());
// check null argument...
try {
m.setLabelFont(null);
fail("Expected an IllegalArgumentException for null.");
}
catch (IllegalArgumentException e) {
assertTrue(true);
}