* @throws Exception DOCUMENT_ME
*/
public void testInsertTriggersPropertyChangeNotification( )
throws Exception
{
PropertyChangeNotificationTestListenerImpl listener = new PropertyChangeNotificationTestListenerImpl( );
m_resourcePropsMgr.addPropertyChangeNotificationListener( listener );
axis.com.xyz.DiskWsdmServiceWSResource ws = new DiskWsdmServiceWSResource( new Disk( RESOURCE_ID ) );
m_resourcePropsMgr.addPropertyChangeNotificationListener( new PropertyChangeNotificationListenerImpl(
ws
.getPropertiesXmlBean( ),
ws
.getNotificationManager( ) ) );
m_resourcePropsMgr.deleteResourceProperty( DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER );
MessageElement[] insertElems =
new MessageElement[]
{
new MessageElement( axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER,
MANUFACTURER_MAXTOR )
};
m_resourcePropsMgr.insertResourceProperties( insertElems );
assertTrue( listener.isNotified( ) );
assertTrue( listener.getEvent( ).getResourcePropName( ).getLocalPart( ).equals( axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER
.getLocalPart( ) ) );
}