Class CustomerReviewTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.testframework.HybrisJUnit4TransactionalTest
de.hybris.platform.customerreview.jalo.CustomerReviewTest
- All Implemented Interfaces:
JaloSessionHolder
JUnit Tests for the CustomerReview extension.
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidtearDown()voidTest if average rating is correctly calculatedvoidTest that blocked reviews are not returnedvoidTest if the parameters given to the createCustomerReview are set correctlyvoidSimple test of order of reviews.voidTest that rating attribute is changeablevoidTest that rating attribute is mandatoryvoidTest if a too large rating value in createCustomerReview(...) causes an exception throwingvoidTest if a too large rating value in setRating(...) causes an exception throwingvoidTest if a too small rating value in createCustomerReview(...) causes an exception throwingMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
CustomerReviewTest
public CustomerReviewTest()
-
-
Method Details
-
setUp
- Throws:
ConsistencyCheckException
-
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
-