-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProfileTest.java
110 lines (93 loc) · 3.77 KB
/
ProfileTest.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import java.util.List;
/**
* A program Team Project
*
* <p>Purdue University -- CS18000 -- Spring 2024 -- Team Project-- </p>
*
* @author Purdue CS
* @version Mar 31, 2024
*/
public class ProfileTest {
@Test
public void testGetAbout() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
assertEquals("about", profile.getAbout());
}
@Test
public void testSetAbout() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
profile.setAbout("newAbout");
assertEquals("newAbout", profile.getAbout());
}
@Test
public void testSetExperience() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
experience.add("experience1");
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
List<String> newExperience = new ArrayList<>();
newExperience.add("experience2");
profile.setExperience(newExperience);
assertEquals(newExperience, profile.getExperience());
}
@Test
public void testGetEducation() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
assertEquals("education", profile.getEducation());
}
@Test
public void testSetEducation() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
profile.setEducation("newEducation");
assertEquals("newEducation", profile.getEducation());
}
@Test
public void testGetAwards() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
assertEquals("awards", profile.getAwards());
}
@Test
public void testSetAwards() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
profile.setAwards("newAwards");
assertEquals("newAwards", profile.getAwards());
}
@Test
public void testSetSkills() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
profile.setSkills("newSkills");
assertEquals("newSkills", profile.getSkills());
}
@Test
public void testGetStatus() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
assertEquals("status", profile.getStatus());
}
@Test
public void testSetStatus() throws ProfileIncompleteException {
List<String> experience = new ArrayList<>();
Profile profile = new Profile("about",
experience, "education", "awards", "skills", "status");
profile.setStatus("newStatus");
assertEquals("newStatus", profile.getStatus());
}
}