Configuration src, int eventType)
{
Map events = new HashMap();
for (Iterator it = l.events.iterator(); it.hasNext();)
{
ConfigurationEvent e = (ConfigurationEvent) it.next();
assertEquals("Wrong event type", eventType, e.getType());
assertTrue("Unknown property: " + e.getPropertyName(), src
.containsKey(e.getPropertyName()));
assertEquals("Wrong property value for " + e.getPropertyName(), e
.getPropertyValue(), src.getProperty(e.getPropertyName()));
if (!e.isBeforeUpdate())
{
assertTrue("After event without before event", events
.containsKey(e.getPropertyName()));
}
else
{
events.put(e.getPropertyName(), e);
}
}
for (Iterator it = src.getKeys(); it.hasNext();)
{