lastEvent = event;
}
public void test(TestHarness harness)
{
JInternalFrame f = new JInternalFrame("Title");
f.addPropertyChangeListener(this);
JDesktopIcon icon = new JDesktopIcon(f);
f.setDesktopIcon(icon);
harness.check(f.getDesktopIcon(), icon);
harness.check(lastEvent.getPropertyName(), "desktopIcon");
harness.check(lastEvent.getSource(), f);
harness.check(lastEvent.getNewValue(), icon);
harness.check(lastEvent.getOldValue() != null);
lastEvent = null;
f.setDesktopIcon(null);
harness.check(f.getDesktopIcon(), null);
harness.check(lastEvent.getPropertyName(), "desktopIcon");
harness.check(lastEvent.getSource(), f);
harness.check(lastEvent.getNewValue(), null);
harness.check(lastEvent.getOldValue(), icon);
JInternalFrame f2 = new JInternalFrame("F2");
JDesktopIcon icon2 = new JDesktopIcon(f2);
f.setDesktopIcon(icon);
harness.check(icon2.getInternalFrame(), f2);
}