Class DefaultCampaignDaoIT

    • Constructor Detail

      • DefaultCampaignDaoIT

        public DefaultCampaignDaoIT()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldProvideAllCampaigns

        public void shouldProvideAllCampaigns()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldProvideCampaignByCode

        public void shouldProvideCampaignByCode()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldRaiseExceptionIfNoCampaignWithGivenCode

        public void shouldRaiseExceptionIfNoCampaignWithGivenCode()
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldProvideOnlyActiveCampaigns

        public void shouldProvideOnlyActiveCampaigns()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createCampaign

        protected CampaignModel createCampaign​(java.lang.String code,
                                               java.util.Date pastDate,
                                               java.util.Date futureDate,
                                               boolean enabled)
      • getCampaignDao

        protected CampaignDao getCampaignDao()
      • getModelService

        protected ModelService getModelService()
      • getTimeService

        protected TimeService getTimeService()