Class MockDemandListener

    • Constructor Detail

      • MockDemandListener

        public MockDemandListener()
    • Method Detail

      • onCreateDemand

        public void onCreateDemand​(Demand demand)
        Something to do when a demand is created
        Specified by:
        onCreateDemand in interface IDemandListener
        Parameters:
        demand - the created demand
      • onUpdateDemand

        public void onUpdateDemand​(Demand demand)
        Something to do when a demand is updated
        Specified by:
        onUpdateDemand in interface IDemandListener
        Parameters:
        demand - the updated demand
      • onDeleteDemand

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

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