forked from rhlomax/Module_1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestFanApp.java
More file actions
33 lines (31 loc) · 711 Bytes
/
Copy pathTestFanApp.java
File metadata and controls
33 lines (31 loc) · 711 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
/**
* TestFanApp.java
* Rich Lomax
* CIS 505
* August, 2022
* A class to test the Fan class
*/
public class TestFanApp {
/* override the default constructor: */
public TestFanApp() {
}
/*
* Method to implement the tests:
*/
public void testTheFans() {
// Create a fan with the defaults:
Fan fan1 = new Fan();
// Create a fan with specific values:
Fan fan2 = new Fan(Fan.MEDIUM, true, 8.0, "Silver");
// Print the fans using their toString methods:
System.out.printf("%s\n%s\n", fan1, fan2);
}
/*
* Main method
*/
public static void main(String[] args) {
TestFanApp tester = new TestFanApp();
tester.testTheFans();
System.exit(0);
}
}