log.println("...done");
log.println("Checking notification listener interface...");
Listener listener = new Listener();
XModifyBroadcaster xMB = (XModifyBroadcaster)
UnoRuntime.queryInterface(XModifyBroadcaster.class, xDP);
xMB.addModifyListener(listener);
xDP.setAuthor("not me");
assure ("Listener Author", listener.reset());
udpc.addProperty("Listener", PropertyAttribute.REMOVEABLE, "foo");
assure ("Listener UserDefined Add", listener.reset());
udps.setPropertyValue("Listener", "bar");
assure ("Listener UserDefined Set", listener.reset());
udpc.removeProperty("Listener");
assure ("Listener UserDefined Remove", listener.reset());
xMB.removeModifyListener(listener);
udpc.addProperty("Listener2", PropertyAttribute.REMOVEABLE, "foo");
assure ("Removed Listener UserDefined Add", !listener.reset());
log.println("...done");