Class CustomerReviewTest

    • Constructor Detail

      • CustomerReviewTest

        public CustomerReviewTest()
    • Method Detail

      • tearDown

        public void tearDown()
      • testRatingTooSmall

        public void testRatingTooSmall()
        Test if a too small rating value in createCustomerReview(...) causes an exception throwing
      • testRatingTooLarge

        public void testRatingTooLarge()
        Test if a too large rating value in createCustomerReview(...) causes an exception throwing
      • testCorrectSetting

        public void testCorrectSetting()
        Test if the parameters given to the createCustomerReview are set correctly
      • testRatingIsChangeable

        public void testRatingIsChangeable()
        Test that rating attribute is changeable
      • testRatingIsMandatory

        public void testRatingIsMandatory()
        Test that rating attribute is mandatory
      • testRatingTooLargeInSetter

        public void testRatingTooLargeInSetter()
        Test if a too large rating value in setRating(...) causes an exception throwing
      • testAverageCorrectness

        public void testAverageCorrectness()
        Test if average rating is correctly calculated
      • testOrderOfReviews

        public void testOrderOfReviews()
        Simple test of order of reviews. Test if new review is returned first.
      • testBlockedReviews

        public void testBlockedReviews()
        Test that blocked reviews are not returned