public class CustomerReviewTest extends HybrisJUnit4TransactionalTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
CustomerReviewTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
tearDown() |
void |
testAverageCorrectness()
Test if average rating is correctly calculated
|
void |
testBlockedReviews()
Test that blocked reviews are not returned
|
void |
testCorrectSetting()
Test if the parameters given to the createCustomerReview and to the setRating method are set correctly
|
void |
testOrderOfReviews()
Simple test of order of reviews.
|
void |
testRatingTooLarge()
Test if a too large rating value in createCustomerReview(...) causes an exception throwing
|
void |
testRatingTooLargeInSetter()
Test if a too large rating value in setRating(...) causes an exception throwing
|
void |
testRatingTooSmall()
Test if a too small rating value in createCustomerReview(...) causes an exception throwing
|
finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void setUp()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic void tearDown()
public void testRatingTooSmall()
public void testRatingTooLarge()
public void testCorrectSetting()
public void testRatingTooLargeInSetter()
public void testAverageCorrectness()
public void testOrderOfReviews()
public void testBlockedReviews()
Copyright © 2017 SAP SE. All Rights Reserved.