Class QuoteControllerUnitTest

java.lang.Object
de.hybris.platform.b2bocc.v2.controllers.QuoteControllerUnitTest

@UnitTest public class QuoteControllerUnitTest extends Object
  • Constructor Details

    • QuoteControllerUnitTest

      public QuoteControllerUnitTest()
  • Method Details

    • setUp

      public void setUp()
    • testCreateQuoteQuoteCodeIsNullAndCartIdIsNotNull

      public void testCreateQuoteQuoteCodeIsNullAndCartIdIsNotNull() throws VoucherOperationException, CommerceCartModificationException
      Throws:
      VoucherOperationException
      CommerceCartModificationException
    • testCreateQuoteQuoteCodeIsNotNullAndCartIdIsNull

      public void testCreateQuoteQuoteCodeIsNotNullAndCartIdIsNull() throws VoucherOperationException, CommerceCartModificationException
      Throws:
      VoucherOperationException
      CommerceCartModificationException
    • testCreateQuoteQuoteCodeIsNullAndCartIdIsNull

      public void testCreateQuoteQuoteCodeIsNullAndCartIdIsNull()
    • testCreateQuoteQuoteCodeIsNotNullAndCartIdIsNotNull

      public void testCreateQuoteQuoteCodeIsNotNullAndCartIdIsNotNull()
    • testGetQuote

      public void testGetQuote()
    • testSubmitQuote

      public void testSubmitQuote() throws CommerceCartModificationException, VoucherOperationException
      Throws:
      CommerceCartModificationException
      VoucherOperationException
    • testGetQuotes

      public void testGetQuotes()
    • testBuyerUpdateQuoteWhenNameIsNotNullAndDescriptionIsNotNull

      public void testBuyerUpdateQuoteWhenNameIsNotNullAndDescriptionIsNotNull()
    • testBuyerUpdateQuoteWhenNameIsNullAndDescriptionIsNull

      public void testBuyerUpdateQuoteWhenNameIsNullAndDescriptionIsNull()
    • testBuyerUpdateQuoteWhenNameIsNullAndDescriptionIsNotNull

      public void testBuyerUpdateQuoteWhenNameIsNullAndDescriptionIsNotNull()
    • testBuyerUpdateQuoteWhenNameIsNotNullAndDescriptionIsNull

      public void testBuyerUpdateQuoteWhenNameIsNotNullAndDescriptionIsNull()
    • testBuyerUpdateQuoteWhenNameIsNullAndDescriptionIsInvalid

      public void testBuyerUpdateQuoteWhenNameIsNullAndDescriptionIsInvalid()
    • testBuyerUpdateQuoteWhenNameIsInvalidAndDescriptionIsNull

      public void testBuyerUpdateQuoteWhenNameIsInvalidAndDescriptionIsNull()
    • testBuyerUpdateQuoteWhenExpirationTimeIsNotNull

      public void testBuyerUpdateQuoteWhenExpirationTimeIsNotNull()
    • testSellerUpdateQuoteWhenNameIsNotNull

      public void testSellerUpdateQuoteWhenNameIsNotNull()
    • testSellerUpdateQuoteWhenDescriptionIsNotNull

      public void testSellerUpdateQuoteWhenDescriptionIsNotNull()
    • testSellerUpdateQuoteWhenExpirationTimeIsNotNullAndNameAndDescriptionAreNull

      public void testSellerUpdateQuoteWhenExpirationTimeIsNotNullAndNameAndDescriptionAreNull()
    • testApproverUpdateQuote

      public void testApproverUpdateQuote()
    • testUpdateQuoteWhenUserTypeIsNull

      public void testUpdateQuoteWhenUserTypeIsNull()
    • testBuyerReplaceWhenQuoteNameIsNotNullAndDescriptionIsNotNull

      public void testBuyerReplaceWhenQuoteNameIsNotNullAndDescriptionIsNotNull()
    • testBuyerReplaceQuoteWhenNameIsNotNullAndDescriptionIsInvalid

      public void testBuyerReplaceQuoteWhenNameIsNotNullAndDescriptionIsInvalid()
    • testBuyerReplaceQuoteWhenNameIsInvalidAndDescriptionIsNotNull

      public void testBuyerReplaceQuoteWhenNameIsInvalidAndDescriptionIsNotNull()
    • testBuyerReplaceQuoteWhenNameIsNullAndDescriptionIsNotNull

      public void testBuyerReplaceQuoteWhenNameIsNullAndDescriptionIsNotNull()
    • testBuyerReplaceQuoteWhenNameIsNotNullAndDescriptionIsNull

      public void testBuyerReplaceQuoteWhenNameIsNotNullAndDescriptionIsNull()
    • testBuyerReplaceQuoteWhenNameIsNullAndDescriptionIsNull

      public void testBuyerReplaceQuoteWhenNameIsNullAndDescriptionIsNull()
    • testBuyerReplaceQuoteWhenExpirationTimeIsNotNull

      public void testBuyerReplaceQuoteWhenExpirationTimeIsNotNull()
    • testSellerReplaceQuoteWhenNameIsNotNull

      public void testSellerReplaceQuoteWhenNameIsNotNull()
    • testSellerReplaceQuoteWhenDescriptionIsNotNull

      public void testSellerReplaceQuoteWhenDescriptionIsNotNull()
    • testSellerReplaceQuoteWhenExpirationTimeIsNotNullAndNameAndDescriptionAreNull

      public void testSellerReplaceQuoteWhenExpirationTimeIsNotNullAndNameAndDescriptionAreNull()
    • testApproverReplaceQuote

      public void testApproverReplaceQuote()
    • testReplaceQuoteWhenUserTypeIsNull

      public void testReplaceQuoteWhenUserTypeIsNull()
    • testCancelQuote

      public void testCancelQuote() throws VoucherOperationException, CommerceCartModificationException
      Throws:
      VoucherOperationException
      CommerceCartModificationException
    • testPerformQuoteActionWithUnknownAction

      public void testPerformQuoteActionWithUnknownAction()
    • testPerformQuoteActionWithNullAction

      public void testPerformQuoteActionWithNullAction()
    • testCreateQuoteCommentWhenTextIsNotNull

      public void testCreateQuoteCommentWhenTextIsNotNull()
    • testCreateQuoteCommentWhenTextIsInvalid

      public void testCreateQuoteCommentWhenTextIsInvalid()
    • testCreateQuoteEntryComment

      public void testCreateQuoteEntryComment()
    • testCreateQuoteDiscount

      public void testCreateQuoteDiscount()
    • testCreateQuoteDiscountWithInvalidDiscountType

      public void testCreateQuoteDiscountWithInvalidDiscountType()
    • testApproveQuote

      public void testApproveQuote() throws VoucherOperationException, CommerceCartModificationException
      Throws:
      VoucherOperationException
      CommerceCartModificationException
    • testRejectQuote

      public void testRejectQuote() throws VoucherOperationException, CommerceCartModificationException
      Throws:
      VoucherOperationException
      CommerceCartModificationException
    • testCheckoutQuote

      public void testCheckoutQuote() throws VoucherOperationException, CommerceCartModificationException
      Throws:
      VoucherOperationException
      CommerceCartModificationException
    • testEditQuote

      public void testEditQuote() throws CommerceCartModificationException, VoucherOperationException
      Throws:
      CommerceCartModificationException
      VoucherOperationException