-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWaitressTest.java
More file actions
34 lines (32 loc) · 827 Bytes
/
Copy pathWaitressTest.java
File metadata and controls
34 lines (32 loc) · 827 Bytes
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
/**
* The objective of waitress is to practice the basic structures of OO
* programming: classes, objects, parameters, return values.
*
* @author ace
* @version 31 March 2010
*/
public class WaitressTest
{
/**
* Constructor for objects of class WaitressTest
*/
public WaitressTest()
{
}
/**
* Create a Waitress, with a method called takeOrder.
* Write this method so that the test below will pass.
*/
public void takeOrderTest()
{
Cook cook = new Cook();
Waitress waitress = new Waitress();
Order order = new Order();
waitress.takeOrder(order, cook);
if(cook.acceptedOrder()){
System.out.println("takeOrderTest passes!");
} else {
System.out.println("takeOrderTest fails!");
}
}
}