Class QuoteHelperTest
- java.lang.Object
-
- de.hybris.platform.b2bocc.v2.helper.QuoteHelperTest
-
@UnitTest public class QuoteHelperTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QuoteHelperTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp() throws CommerceCartModificationException
-
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
public void testCreateQuote() throws CommerceCartModificationException, VoucherOperationException
-
testCreateQuoteForApprover
public void testCreateQuoteForApprover()
-
testCreateQuoteWhenEmptyCartThrowsError
public void testCreateQuoteWhenEmptyCartThrowsError()
-
testCreateQuoteWhenCartIsNotValid
public void testCreateQuoteWhenCartIsNotValid() throws CommerceCartModificationException
-
testCreateQuoteWhenGetAllowedActionsThrowsError
public void testCreateQuoteWhenGetAllowedActionsThrowsError()
-
testCreateQuoteWhenRemoveVoucherThrowsError
public void testCreateQuoteWhenRemoveVoucherThrowsError() throws VoucherOperationException- 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
public void testCancelQuote() throws VoucherOperationException, CommerceCartModificationException
-
testCancelQuoteWhenQuoteDoesNotExist
public void testCancelQuoteWhenQuoteDoesNotExist()
-
testSubmitQuote
public void testSubmitQuote() throws CommerceCartModificationException, VoucherOperationException
-
testSubmitQuoteWhenCartIsNotValidThrowsError
public void testSubmitQuoteWhenCartIsNotValidThrowsError() throws CommerceCartModificationException
-
testSubmitQuoteWhenRemoveVoucherThrowsError
public void testSubmitQuoteWhenRemoveVoucherThrowsError() throws VoucherOperationException- Throws:
VoucherOperationException
-
testSubmitQuoteWhenValidateCartThrowsError
public void testSubmitQuoteWhenValidateCartThrowsError() throws CommerceCartModificationException
-
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
public void testApproveQuote() throws VoucherOperationException, CommerceCartModificationException
-
testApproveQuoteWhenFacadeThrowsError
public void testApproveQuoteWhenFacadeThrowsError()
-
testApproveQuoteWhenQuoteDoesNotExist
public void testApproveQuoteWhenQuoteDoesNotExist()
-
testRejectQuote
public void testRejectQuote() throws VoucherOperationException, CommerceCartModificationException
-
testRejectQuoteWhenQuoteDoesNotExist
public void testRejectQuoteWhenQuoteDoesNotExist()
-
testRejectQuoteWhenFacadeThrowsError
public void testRejectQuoteWhenFacadeThrowsError()
-
testCheckoutQuote
public void testCheckoutQuote() throws VoucherOperationException, CommerceCartModificationException
-
testCheckoutQuoteWhenNotAllowedToCheckout
public void testCheckoutQuoteWhenNotAllowedToCheckout() throws VoucherOperationException, CommerceCartModificationException
-
testCheckoutQuoteWhenQuoteDoesNotExist
public void testCheckoutQuoteWhenQuoteDoesNotExist()
-
testCheckoutQuoteWhenFacadeThrowsError
public void testCheckoutQuoteWhenFacadeThrowsError()
-
testEditQuote
public void testEditQuote() throws VoucherOperationException, CommerceCartModificationException
-
testEditQuoteWhenQuoteDoesNotExist
public void testEditQuoteWhenQuoteDoesNotExist()
-
testEditQuoteWhenFacadeThrowsError
public void testEditQuoteWhenFacadeThrowsError()
-
testRemoveVouchers
public void testRemoveVouchers() throws VoucherOperationException- Throws:
VoucherOperationException
-
testRemoveVouchersWithErrors
public void testRemoveVouchersWithErrors() throws VoucherOperationException- Throws:
VoucherOperationException
-
testValidateCartThrowsErrorWhenNotValid
public void testValidateCartThrowsErrorWhenNotValid() throws CommerceCartModificationException
-
testValidateCartRethrowsError
public void testValidateCartRethrowsError() throws CommerceCartModificationException
-
testValidateCart
public void testValidateCart() throws CommerceCartModificationException
-
testSetSessionCartFromQuote
public void testSetSessionCartFromQuote()
-
-