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 void
setUp()
void
tearDown()
void
testAverageCorrectness()
Test if average rating is correctly calculatedvoid
testBlockedReviews()
Test that blocked reviews are not returnedvoid
testCorrectSetting()
Test if the parameters given to the createCustomerReview are set correctlyvoid
testOrderOfReviews()
Simple test of order of reviews.void
testRatingIsChangeable()
Test that rating attribute is changeablevoid
testRatingIsMandatory()
Test that rating attribute is mandatoryvoid
testRatingTooLarge()
Test if a too large rating value in createCustomerReview(...) causes an exception throwingvoid
testRatingTooLargeInSetter()
Test if a too large rating value in setRating(...) causes an exception throwingvoid
testRatingTooSmall()
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
-
-