lastEvent = e;
}
public void test(TestHarness harness)
{
JInternalFrame f = new JInternalFrame("F1");
f.addPropertyChangeListener(this);
f.setTitle("F2");
harness.check(f.getTitle(), "F2");
harness.check(lastEvent.getPropertyName(), "title");
harness.check(lastEvent.getSource(), f);
harness.check(lastEvent.getOldValue(), "F1");
harness.check(lastEvent.getNewValue(), "F2");
lastEvent = null;
f.setTitle(null);
harness.check(f.getTitle(), null);
harness.check(lastEvent.getPropertyName(), "title");
harness.check(lastEvent.getSource(), f);
harness.check(lastEvent.getOldValue(), "F2");
harness.check(lastEvent.getNewValue(), null);
// setting null again generates no event
lastEvent = null;
f.setTitle(null);
harness.check(lastEvent.getPropertyName(), "title");
harness.check(lastEvent.getSource(), f);
harness.check(lastEvent.getOldValue(), null);
harness.check(lastEvent.getNewValue(), null);
f.setTitle("F3");
harness.check(f.getTitle(), "F3");
harness.check(lastEvent.getPropertyName(), "title");
harness.check(lastEvent.getSource(), f);
harness.check(lastEvent.getOldValue(), null);
harness.check(lastEvent.getNewValue(), "F3");
}