Examples of waitForIncomingMessage()


Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      // destroy the resource - a notification should get emitted!
      m_stub.destroy( new Destroy(  ) );

      // wait for that termination notification
      String incomingMessage = notificationListener.waitForIncomingMessage(  );

      //validate the incoming notification is really in there!
      validateNotificationMessage( incomingMessage );

      // simple test just to verify the termination notification was in the notification
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      SubscribeResponse sub_response =
         subscribe( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE,
                    "http://127.0.0.1:" + NOTIFICATION_LISTENER_PORT );

      testDiskPortSetResourcePropertiesUpdate(  );
      String incomingMessage = notificationListener.waitForIncomingMessage(  );
      assertFalse( "Incoming Message started with an Error.",
                   incomingMessage.startsWith( "ERROR" ) );

      EndpointReferenceType              subscriptionReference = sub_response.getSubscriptionReference(  );
      SubscriptionManagerHttpBindingStub subMgrBinding = getSubMgrBinding(  );
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      subMgrBinding.destroy( null );

      notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, 5000 );

      testDiskPortSetResourcePropertiesUpdate(  );
      String response = notificationListener.waitForIncomingMessage(  );
      assertTrue( "Incoming Message did not start with an Error.",
                  response.startsWith( "ERROR" ) );
   }

   /**
 
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      //test as a listener for events
      PortListen notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, LISTENER_TIMEOUT );
      assertTrue( AxisGenTypesUtils.getResourceId( subRef ).length(  ) != 0 );

      String incomingMessage = notificationListener.waitForIncomingMessage(  );

      //validate the incoming notification is really in there!
      validateNotificationMessage( incomingMessage );

      // Call GetCurrentMessage to assure that the BadSector message is available.
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      assertTrue( AxisGenTypesUtils.getResourceId( rsSubRef ).compareTo( AxisGenTypesUtils.getResourceId( bsSubRef ) ) != 0 );

      // Update the BlockSize to initiate the Notification
      testDiskPortSetResourcePropertiesUpdate(  );

      String incomingMessage = notificationListener.waitForIncomingMessage(  );

      //validate the incoming notification is really in there!
      validateNotificationMessage( incomingMessage );

      // Call GetCurrentMessage to assure that the BlockSize message is available.
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      subMgrBinding.setResourceId( AxisGenTypesUtils.getResourceId( subscriptionReference ) );
      subMgrBinding.pauseSubcription( null );

      testDiskPortSetResourcePropertiesUpdate(  );

      String incomingMessage = notificationListener.waitForIncomingMessage(  );
      assertTrue( incomingMessage.startsWith( "ERROR:java.net.SocketTimeoutException: Accept timed out" ) );
      notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, 5000 );
      subMgrBinding.resumeSubscription( null );

      testDiskPortSetResourcePropertiesUpdate(  );
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      assertTrue( incomingMessage.startsWith( "ERROR:java.net.SocketTimeoutException: Accept timed out" ) );
      notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, 5000 );
      subMgrBinding.resumeSubscription( null );

      testDiskPortSetResourcePropertiesUpdate(  );
      String response = notificationListener.waitForIncomingMessage(  );
      assertFalse( response.startsWith( "ERROR" ) );
   }

   /**
    * Tests creating the service via JAX-RPC ServiceFactory.
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      SubscribeResponse sub_response =
         subscribe( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE,
                    "http://127.0.0.1:" + NOTIFICATION_LISTENER_PORT );

      testDiskPortSetResourcePropertiesUpdate(  );
      String incomingMessage = notificationListener.waitForIncomingMessage(  );
      assertFalse( incomingMessage.startsWith( "ERROR" ) );

      EndpointReferenceType              subscriptionReference = sub_response.getSubscriptionReference(  );
      SubscriptionManagerHttpBindingStub subMgrBinding = getSubMgrBinding(  );
      assertNotNull( subMgrBinding );
View Full Code Here

Examples of org.apache.ws.notification.PortListen.waitForIncomingMessage()

      subMgrBinding.setTerminationTime( termTime );

      notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, 5000 );

      testDiskPortSetResourcePropertiesUpdate(  );
      String response = notificationListener.waitForIncomingMessage(  );
      assertTrue( response.startsWith( "ERROR" ) );
   }

   /**
    * Tests the NotificationProducer support in DiskWsdmServiceWSResource.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.