Class QuoteHelperTest
java.lang.Object
de.hybris.platform.b2bocc.v2.helper.QuoteHelperTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
QuoteHelperTest
public QuoteHelperTest()
-
-
Method Details
-
setUp
-
testIfViewAndSaveAreNotReturnedInTheListOfAllowedActionsForCreate
public void testIfViewAndSaveAreNotReturnedInTheListOfAllowedActionsForCreate() throws CommerceCartModificationException, VoucherOperationException -
testIfViewAndSaveAreNotReturnedInTheListOfAllowedActionsForGet
public void testIfViewAndSaveAreNotReturnedInTheListOfAllowedActionsForGet() throws CommerceCartModificationException, VoucherOperationException -
testIfDiscountAndExpiredAndOrderAreNotReturnedInTheListOfAllowedActionsForCreate
public void testIfDiscountAndExpiredAndOrderAreNotReturnedInTheListOfAllowedActionsForCreate() throws CommerceCartModificationException, VoucherOperationException -
testIfDiscountAndExpiredAndOrderAreNotReturnedInTheListOfAllowedActionsForGet
public void testIfDiscountAndExpiredAndOrderAreNotReturnedInTheListOfAllowedActionsForGet() -
testCreateQuote
-
testCreateQuoteForApprover
public void testCreateQuoteForApprover() -
testCreateQuoteWhenEmptyCartThrowsError
public void testCreateQuoteWhenEmptyCartThrowsError() -
testCreateQuoteWhenCartIsNotValid
-
testCreateQuoteWhenGetAllowedActionsThrowsError
public void testCreateQuoteWhenGetAllowedActionsThrowsError() -
testCreateQuoteWhenRemoveVoucherThrowsError
- Throws:
VoucherOperationException
-
testCreateQuoteQuoteCodeWhenValidateCartThrowsException
public void testCreateQuoteQuoteCodeWhenValidateCartThrowsException() throws CommerceCartModificationException -
testRequote
public void testRequote() -
testRequoteForApprover
public void testRequoteForApprover() -
testRequoteWhenQuoteDoesNotExist
public void testRequoteWhenQuoteDoesNotExist() -
testGetQuoteWithCartData
public void testGetQuoteWithCartData() -
testGetQuoteWithoutCartData
public void testGetQuoteWithoutCartData() -
testSellerGetQuoteWhenQuoteStateIsSellerApproverApproved
public void testSellerGetQuoteWhenQuoteStateIsSellerApproverApproved() -
testApproverGetQuoteWhenQuoteStateIsSellerApproverApproved
public void testApproverGetQuoteWhenQuoteStateIsSellerApproverApproved() -
testBuyerGetQuoteWhenQuoteStateIsBuyerSubmitted
public void testBuyerGetQuoteWhenQuoteStateIsBuyerSubmitted() -
testBuyerGetQuoteWhenCartDataExistsAndQuoteStateIsBuyerOffer
public void testBuyerGetQuoteWhenCartDataExistsAndQuoteStateIsBuyerOffer() -
testGetQuoteWhenGetAllowedActionsThrowsError
public void testGetQuoteWhenGetAllowedActionsThrowsError() -
testGetQuoteWhenQuoteDoesNotExist
public void testGetQuoteWhenQuoteDoesNotExist() -
testGetQuotes
public void testGetQuotes() -
testUpdateQuote
public void testUpdateQuote() -
testUpdateQuoteWhenQuoteDoesNotExist
public void testUpdateQuoteWhenQuoteDoesNotExist() -
testCancelQuote
-
testCancelQuoteWhenQuoteDoesNotExist
public void testCancelQuoteWhenQuoteDoesNotExist() -
testSubmitQuote
-
testSubmitQuoteWhenCartIsNotValidThrowsError
-
testSubmitQuoteWhenRemoveVoucherThrowsError
- Throws:
VoucherOperationException
-
testSubmitQuoteWhenValidateCartThrowsError
-
testSubmitQuoteWhenQuoteDoesNotExist
public void testSubmitQuoteWhenQuoteDoesNotExist() -
testCreateQuoteComment
public void testCreateQuoteComment() -
testCreateQuoteCommentWhenQuoteDoesNotExist
public void testCreateQuoteCommentWhenQuoteDoesNotExist() -
testCreateQuoteEntryComment
public void testCreateQuoteEntryComment() -
testCreateQuoteEntryCommentWhenQuoteDoesNotExist
public void testCreateQuoteEntryCommentWhenQuoteDoesNotExist() -
testCreateQuoteEntryCommentWhenEntryDoesNotExist
public void testCreateQuoteEntryCommentWhenEntryDoesNotExist() -
testCreateQuoteEntryCommentWhenTextIsTooLong
public void testCreateQuoteEntryCommentWhenTextIsTooLong() -
testCreateQuoteDiscount
public void testCreateQuoteDiscount() -
testCreateQuoteDiscountWhenQuoteDoesNotExist
public void testCreateQuoteDiscountWhenQuoteDoesNotExist() -
testApproveQuote
-
testApproveQuoteWhenFacadeThrowsError
public void testApproveQuoteWhenFacadeThrowsError() -
testApproveQuoteWhenQuoteDoesNotExist
public void testApproveQuoteWhenQuoteDoesNotExist() -
testRejectQuote
-
testRejectQuoteWhenQuoteDoesNotExist
public void testRejectQuoteWhenQuoteDoesNotExist() -
testRejectQuoteWhenFacadeThrowsError
public void testRejectQuoteWhenFacadeThrowsError() -
testCheckoutQuote
-
testCheckoutQuoteWhenNotAllowedToCheckout
public void testCheckoutQuoteWhenNotAllowedToCheckout() throws VoucherOperationException, CommerceCartModificationException -
testCheckoutQuoteWhenQuoteDoesNotExist
public void testCheckoutQuoteWhenQuoteDoesNotExist() -
testCheckoutQuoteWhenFacadeThrowsError
public void testCheckoutQuoteWhenFacadeThrowsError() -
testEditQuote
-
testEditQuoteWhenQuoteDoesNotExist
public void testEditQuoteWhenQuoteDoesNotExist() -
testEditQuoteWhenFacadeThrowsError
public void testEditQuoteWhenFacadeThrowsError() -
testRemoveVouchers
- Throws:
VoucherOperationException
-
testRemoveVouchersWithErrors
- Throws:
VoucherOperationException
-
testValidateCartThrowsErrorWhenNotValid
-
testValidateCartRethrowsError
-
testValidateCart
-
testSetSessionCartFromQuote
public void testSetSessionCartFromQuote()
-