Class MockNotificationListener

    • Constructor Detail

      • MockNotificationListener

        public MockNotificationListener()
    • Method Detail

      • onDeleteDemand

        public void onDeleteDemand​(String strDemandId,
                                   String strDemandTypeId)
        Something to do on notification when a demand is deleted
        Specified by:
        onDeleteDemand in interface INotificationListener
        Parameters:
        strDemandId - the demand id
        strDemandTypeId - the demand type id
      • listenAndConsume

        public boolean listenAndConsume​(MockActionListenerEnum actionListener,
                                        Notification notification)
        Listens and consumes a notification
        Parameters:
        actionListener - the action to perform
        notification - the notification
        Returns:
        true if the treatment is successful, false otherwise