Package com.xyz

Examples of com.xyz.PropertyChangeNotificationTestListenerImpl


    * @throws Exception DOCUMENT_ME
    */
   public void testDeleteTriggersPropertyChangeNotification(  )
   throws Exception
   {
      PropertyChangeNotificationTestListenerImpl listener = new PropertyChangeNotificationTestListenerImpl(  );
      m_resourcePropsMgr.addPropertyChangeNotificationListener( listener );
      m_resourcePropsMgr.deleteResourceProperty( DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );
      assertTrue( listener.isNotified(  ) );
      assertTrue( listener.getEvent(  ).getResourcePropName(  ) == axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );
   }
View Full Code Here


    * @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(  ) ) );
   }
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testPropChangeNotifDeregisterOccurs(  )
   throws Exception
   {
      PropertyChangeNotificationTestListenerImpl listener = new PropertyChangeNotificationTestListenerImpl(  );
      m_resourcePropsMgr.addPropertyChangeNotificationListener( listener );
      m_resourcePropsMgr.removePropertyChangeNotificationListener( listener );
      m_resourcePropsMgr.deleteResourceProperty( axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );
      assertFalse( listener.isNotified(  ) );
      assertNull( listener.getEvent(  ) );
   }
View Full Code Here

      axis.com.xyz.DiskWsdmServiceWSResource diskWsdmServiceWSResource =
         new axis.com.xyz.DiskWsdmServiceWSResource( new Disk( RESOURCE_ID ) );
      PropertyChangeNotificationListenerImpl listener =
         new PropertyChangeNotificationListenerImpl( diskWsdmServiceWSResource.getPropertiesXmlBean(  ),
                                                     diskWsdmServiceWSResource.getNotificationManager(  ) );
      PropertyChangeNotificationTestListenerImpl testlistener = new PropertyChangeNotificationTestListenerImpl(  );
      m_resourcePropsMgr.addPropertyChangeNotificationListener( listener );
      m_resourcePropsMgr.deleteResourceProperty( DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );

      assertFalse( testlistener.isNotified(  ) );
      assertNull( testlistener.getEvent(  ) );
   }
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testUpdateTriggersPropertyChangeNotification(  )
   throws Exception
   {
      PropertyChangeNotificationTestListenerImpl listener = new PropertyChangeNotificationTestListenerImpl(  );
      m_resourcePropsMgr.addPropertyChangeNotificationListener( listener );

      MessageElement[] UPDATE__MANUFACTURER_ARRAY;
      UPDATE__MANUFACTURER_ARRAY = new MessageElement[1];
      MessageElement update_elem =
         new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER, MANUFACTURER_MAXTOR );
      UPDATE__MANUFACTURER_ARRAY[0] = update_elem;
      m_resourcePropsMgr.updateResourceProperties( UPDATE__MANUFACTURER_ARRAY );

      assertTrue( listener.isNotified(  ) );
      assertTrue( listener.getEvent(  ).getResourcePropName(  ).getLocalPart(  ).equals( axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER
                                                                                         .getLocalPart(  ) ) );
   }
View Full Code Here

TOP

Related Classes of com.xyz.PropertyChangeNotificationTestListenerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.