-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lab15bTester.java
76 lines (66 loc) · 2.03 KB
/
Lab15bTester.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
* This class contains class (static) methods
* that will help you test the Picture class
* methods. Uncomment the methods and the code
* in the main to test.
*
* @author Barbara Ericson
*
* 02-27-15 altered by Leon Schram
* This class is a reduced version of the PictureTester class.
* The file is reduced to concentrate of the Lab15b Assignment only.
*/
/////////////////////////////////////////////////////////////////////////////
//
// This Lab15b testing file is not be altered, except for comments.
// Students do all their programming in the "Picture.java" file.
// The file is identical for students and teachers.
//
// Three method calls in the main method need to be commented to test one
// version at a time.
//
// Important: The 100-Point version requires three tests: 80, 90 amd 100
// The 90-Point version requires two tests: 80 and 90
// The 80-point version requires only one test: 80
//
////////////////////////////////////////////////////////////////////////////
public class Lab15bTester
{
public static void main(String[] args)
{
test80Points();
test90Points();
test100Points();
}
public static void test80Points()
{
Picture pix = new Picture("beach.jpg");
pix.explore();
pix.grayScale();
pix.explore();
pix.mirror();
pix.explore();
pix.upsideDown();
pix.explore();
}
public static void test90Points()
{
Picture pix1 = new Picture("motorcycle.jpg");
pix1.explore();
pix1.mirrorHorizontal();
pix1.explore();
Picture pix2 = new Picture("motorcycle.jpg");
pix2.mirrorVertical();
pix2.explore();
Picture pix3 = new Picture("motorcycle.jpg");
pix3.mirrorDiagonal();
pix3.explore();
}
public static void test100Points()
{
Picture pix = new Picture("temple.jpg");
pix.explore();
pix.mirrorTemple();
pix.explore();
}
}