Package com.amazon.orders.testkit
Class AmazonOrdersTestkit
java.lang.Object
com.amazon.orders.testkit.AmazonOrdersTestkit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
givenOrders
(String[] itemIds, String orderId) Given item ids, the testkit will return the given orderIdReturns all the item ids that orderedvoid
Starting the testkit.void
throwsExceptionOn
(String[] itemIds) Given item ids, the testkit will fail to create an order
-
Constructor Details
-
AmazonOrdersTestkit
-
-
Method Details
-
runServer
public void runServer()Starting the testkit. -
listOrderedProductsIds
Returns all the item ids that ordered- Returns:
- The ordered items ids
-
givenOrders
Given item ids, the testkit will return the given orderId- Parameters:
itemIds
- The items you want to orderorderId
- The order id to be returned
-
throwsExceptionOn
Given item ids, the testkit will fail to create an order- Parameters:
itemIds
- The items you want to order
-