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
public class CustomerReviewTest extends HybrisJUnit4TransactionalTest
JUnit Tests for the CustomerReview extension.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description CustomerReviewTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtearDown()voidtestAverageCorrectness()Test if average rating is correctly calculatedvoidtestBlockedReviews()Test that blocked reviews are not returnedvoidtestCorrectSetting()Test if the parameters given to the createCustomerReview are set correctlyvoidtestOrderOfReviews()Simple test of order of reviews.voidtestRatingIsChangeable()Test that rating attribute is changeablevoidtestRatingIsMandatory()Test that rating attribute is mandatoryvoidtestRatingTooLarge()Test if a too large rating value in createCustomerReview(...) causes an exception throwingvoidtestRatingTooLargeInSetter()Test if a too large rating value in setRating(...) causes an exception throwingvoidtestRatingTooSmall()Test if a too small rating value in createCustomerReview(...) causes an exception throwing-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws ConsistencyCheckException- 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
-
-