orderMngmntWebapp\src\orderMngr\web\submitOrder\OrderEntryPage.java
| |
5 | |
package orderMngr.web.submitOrder; |
| |
| |
import java.math.*;
import java.util.*;
import orderMngr.domain.order.*;
import ...
|
| |
12 | 6 |
public final class OrderEntryPage
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 21
|
13 | |
{ |
14 | |
|
15 | |
private String customerId; |
16 | |
private List<OrderItem> orderItems; |
| |
18 | |
|
19 | |
private String productId; |
20 | |
private String productDescription; |
21 | |
private int quantity; |
22 | |
private BigDecimal unitPrice; |
| |
24 | |
|
25 | |
private int itemToRemove; |
| |
27 | |
|
28 | |
private int orderNo; |
| |
30 | |
public void load() |
31 | |
{ |
32 | 6 |
orderItems = new ArrayList<>(5);
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 22
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 38
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeOnlyItem: 82
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 66
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrderWithMissingData: 105
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeItemWithInvalidIndex: 95
|
33 | |
|
34 | |
|
35 | 6 |
}
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 22
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 38
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeOnlyItem: 82
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 66
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrderWithMissingData: 105
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeItemWithInvalidIndex: 95
|
| |
37 | 2 |
public void setCustomerId(String customerId) { this.customerId = customerId; }
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 25
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 39
|
| |
39 | 9 |
public List<OrderItem> getOrderItems() { return orderItems; }
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 26, 31
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 40, 43
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeOnlyItem: 83, 87
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 69, 70
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeItemWithInvalidIndex: 96
|
| |
41 | 1 |
public void setProductId(String productId) { this.productId = productId; }
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 58
|
| |
43 | 1 |
public void setProductDescription(String productDescription) { this.productDescription = productDescription; }
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 60
|
| |
45 | 1 |
public void setQuantity(int quantity) { this.quantity = quantity; }
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 62
|
| |
47 | 1 |
public void setUnitPrice(BigDecimal unitPrice) { this.unitPrice = unitPrice; }
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 64
|
| |
49 | 2 |
public void setItemToRemove(int itemToRemove) { this.itemToRemove = itemToRemove; }
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeOnlyItem: 81
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeItemWithInvalidIndex: 94
|
| |
51 | 5 |
public int getOrderNo() { return orderNo; }
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 27, 38
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 42, 45
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrderWithMissingData: 112
|
| |
53 | |
public void addItem() |
54 | |
{ |
55 | 1 |
OrderItem item = new OrderItem(productId, productDescription, quantity, unitPrice);
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 67
|
56 | 1 |
orderItems.add(item);
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 67
|
57 | 1 |
}
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#addItemToEmptyList: 67
|
| |
59 | |
public void removeItem() |
60 | |
{ |
61 | 2 |
orderItems.remove(itemToRemove);
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeOnlyItem: 85
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeItemWithInvalidIndex: 98
|
62 | 1 |
}
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#removeOnlyItem: 85
|
| |
64 | |
public void submitOrder() throws Exception |
65 | |
{ |
66 | 3 |
Order order = new OrderFactory().createOrder(customerId, orderItems);
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 36
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 43
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrderWithMissingData: 108
|
67 | 2 |
orderNo = order.getNumber();
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 36
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 43
|
68 | 2 |
}
- orderMngr.web.submitOrder.OrderEntryPageTest#submitOrder: 36
- orderMngr.web.submitOrder.OrderEntryPage_MockupsAPI_Test#submitOrder: 43
|
69 | |
} |