Package com.amazon.orders.testkit
Class AmazonOrdersTestkit
java.lang.Object
com.amazon.orders.testkit.AmazonOrdersTestkit
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidgivenOrders(String[] itemIds, String orderId) Given item ids, the testkit will return the given orderIdReturns all the item ids that orderedvoidStarting the testkit.voidthrowsExceptionOn(String[] itemIds) Given item ids, the testkit will fail to create an order
- 
Constructor Details- 
AmazonOrdersTestkit
 
- 
- 
Method Details- 
runServerpublic void runServer()Starting the testkit.
- 
listOrderedProductsIdsReturns all the item ids that ordered- Returns:
- The ordered items ids
 
- 
givenOrdersGiven item ids, the testkit will return the given orderId- Parameters:
- itemIds- The items you want to order
- orderId- The order id to be returned
 
- 
throwsExceptionOnGiven item ids, the testkit will fail to create an order- Parameters:
- itemIds- The items you want to order
 
 
-