* Some checks for the getLabelOffset() and setLabelOffset() methods.
*/
public void testGetSetLabelOffset() {
// 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 RectangleInsets(3, 3, 3, 3), m.getLabelOffset());
m.setLabelOffset(new RectangleInsets(1, 2, 3, 4));
assertEquals(new RectangleInsets(1, 2, 3, 4), m.getLabelOffset());
assertEquals(m, this.lastEvent.getMarker());
// check null argument...
try {
m.setLabelOffset(null);
fail("Expected an IllegalArgumentException for null.");
}
catch (IllegalArgumentException e) {
assertTrue(true);
}