Class TravellerStatusInfoHandlerTest
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.TravellerStatusInfoHandlerTest
Unit test for TravellerStatusInfoHandler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgiven: OfferResponseData when: in amendment flow and Consignment status is valid TravellerStatus then: TravellerStatusInfo is populated with Consignment status.voidgiven: OfferResponseData when: in amendment flow and Consignment status is not a valid TravellerStatus then: TravellerStatusInfo is populated as READY.voidgiven: OfferResponseData when: in purchase flow then: TravellerStatusInfo is not populated.
-
Constructor Details
-
TravellerStatusInfoHandlerTest
public TravellerStatusInfoHandlerTest()
-
-
Method Details
-
testPopulatePurchase
public void testPopulatePurchase()given: OfferResponseData when: in purchase flow then: TravellerStatusInfo is not populated. -
testPopulateAmendment
public void testPopulateAmendment()given: OfferResponseData when: in amendment flow and Consignment status is valid TravellerStatus then: TravellerStatusInfo is populated with Consignment status. -
testPopulateIncorrectStatus
public void testPopulateIncorrectStatus()given: OfferResponseData when: in amendment flow and Consignment status is not a valid TravellerStatus then: TravellerStatusInfo is populated as READY.
-