-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTryMe.java
58 lines (50 loc) · 1.21 KB
/
TryMe.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package UI;
import Control.*;
import Model.*;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* The test class TryMe.
*
* @author Yi-Chen Lin
* @version 20191215
*/
public class TryMe
{
private ItemController iCtr = new ItemController();
private OrderController oCtr = new OrderController();
/**
* Default constructor for test class Test2
*/
public TryMe()
{
}
/**
* Sets up the test fixture.
*
* Called before every test case method.
*/
@Before
public void setUp()
{
iCtr.addProduct("001", "timber1", 1, 100, 200, 500, 500, 500, 500);
((Product)iCtr.getItem("001")).makeUnique();
iCtr.addProduct("002", "Fridge", 100, 10, 15, 900, 900, 900.5, 900.9);
iCtr.addCopy("002", "001002003");
iCtr.addCopy("002", "001002004");
iCtr.addPackage("100", "Kitchen", 7000.6);
iCtr.addPackage("200", "Bathroom", 9000.5);
oCtr.createOrder("20191215",null, null);
}
/**
* Tears down the test fixture.
*
* Called after every test case method.
*/
@After
public void tearDown()
{
}
}