Class ProductDaoTest

    • Constructor Detail

      • ProductDaoTest

        public ProductDaoTest()
    • Method Detail

      • setUp

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

        public void tearDown()
      • testFindProduct

        public void testFindProduct()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindProductWhenCodeIsNull

        public void testFindProductWhenCodeIsNull()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindProductWhenCodeIsUnknown

        public void testFindProductWhenCodeIsUnknown()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetProductsByCategory

        public void testGetProductsByCategory()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetProductsWithStatus

        public void testGetProductsWithStatus()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetProductsByCategoryWhenCategoryIsNull

        public void testGetProductsByCategoryWhenCategoryIsNull()
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetProductsByCategoryWithLimit

        public void testGetProductsByCategoryWithLimit()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetProductFromCatalogVersionWhenNoActiveCatalogVersionIsSet

        public void testGetProductFromCatalogVersionWhenNoActiveCatalogVersionIsSet()
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindProductWhenCatalogVersionIsNull

        public void testFindProductWhenCatalogVersionIsNull()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindProductWhenCodeIsNullAndCatalogVersionNotNull

        public void testFindProductWhenCodeIsNullAndCatalogVersionNotNull()
                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindProductWhenThereIsNoResults

        public void testFindProductWhenThereIsNoResults()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindAllProductsCount

        public void testFindAllProductsCount()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindAllProductsCountByEmptyCategory

        public void testFindAllProductsCountByEmptyCategory()
      • testFindProductsCountForOneCategory

        public void testFindProductsCountForOneCategory()
      • testFindProductsFromCatalogVersion

        public void testFindProductsFromCatalogVersion()
      • testFindProductsFromCatalogVersionWhenNull

        public void testFindProductsFromCatalogVersionWhenNull()