Class QuoteControllerUnitTest


  • @UnitTest
    public class QuoteControllerUnitTest
    extends java.lang.Object
    • Constructor Detail

      • QuoteControllerUnitTest

        public QuoteControllerUnitTest()
    • Method Detail

      • setUp

        public void setUp()
      • testCreateQuoteQuoteCodeIsNullAndCartIdIsNull

        public void testCreateQuoteQuoteCodeIsNullAndCartIdIsNull()
      • testCreateQuoteQuoteCodeIsNotNullAndCartIdIsNotNull

        public void testCreateQuoteQuoteCodeIsNotNullAndCartIdIsNotNull()
      • testGetQuote

        public void testGetQuote()
      • 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()
      • 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()