-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResumeTestData.java
More file actions
82 lines (70 loc) · 4.38 KB
/
ResumeTestData.java
File metadata and controls
82 lines (70 loc) · 4.38 KB
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
package ru.javaops.webapp;
import ru.javaops.webapp.model.*;
import ru.javaops.webapp.util.DateUtil;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static ru.javaops.webapp.model.ContactType.*;
import static ru.javaops.webapp.model.SectionType.*;
public class ResumeTestData {
public static void main(String[] args) {
Resume resume = new Resume("Медведев Дмитрий");
resume = createTestResume(resume.getUuid(), resume.getFullName());
System.out.println(resume.getFullName());
for (ContactType contact : ContactType.values()) {
System.out.println(contact.getTitle() + " : " + resume.getContact(contact));
}
for (SectionType section : SectionType.values()) {
System.out.println(section.getTitle() + " : " + resume.getSection(section));
}
}
public static Resume createTestResume(String uuid, String fullName) {
Resume resume = new Resume(uuid, fullName);
resume.addContact(PHONE, "+7(999) 435-23-45");
resume.addContact(SKYPE, "dimamedvedev");
resume.addContact(MAIL, "stringer-mdm@yandex.ru");
resume.addContact(LINKEDIN, "some link");
resume.addContact(GITHUB, "some link");
resume.addContact(STATCKOVERFLOW, "some link");
resume.addContact(HOME_PAGE, "some link");
resume.addSection(OBJECTIVE, new TextSection("Нашальнике ГАДиВСУ"));
resume.addSection(PERSONAL, new TextSection("Учу Java каждый день"));
List<String> achievementItems = Arrays.asList("Закончил StartJava за 20 дней", "Мог и быстрее");
resume.addSection(ACHIEVEMENT, new ListSection(achievementItems));
List<String> qualificationsItems = Arrays.asList("Инженер", "Java Core");
resume.addSection(QUALIFICATIONS, new ListSection(qualificationsItems));
List<Organization.Period> periods = Arrays.asList(new Organization.Period(LocalDate.of(2015, 7, 30),
DateUtil.NOW,
"Нашальнике", "Начальник группы двигателей и ВСУ"));
Organization organisation = new Organization("ООО НВ Техник", "https://nwtechnic.com/", periods);
List<Organization.Period> periods1 = Arrays.asList(
new Organization.Period(LocalDate.of(2010, 10, 14), LocalDate.of(2013, 4, 1),
"Инженер", "Инженер по двигателям и ВСУ"),
new Organization.Period(LocalDate.of(2013, 4, 1), LocalDate.of(2014, 4, 1),
"Ведущий инженер", "Ведущий инженер по двигателям и ВСУ"),
new Organization.Period(LocalDate.of(2014, 4, 1), LocalDate.of(2015, 7, 29),
"Руководитель группы", "Руководитель группы двигателей Rolls-Royce"));
Organization organisation1 = new Organization("ОAО АК Трансаеро", null, periods1);
List<Organization> organisations = new ArrayList<>();
organisations.add(organisation);
organisations.add(organisation1);
OrganizationSection experienceSection = new OrganizationSection(organisations);
resume.addSection(EXPERIENCE, experienceSection);
List<Organization.Period> periods2 = Arrays.asList(
new Organization.Period(LocalDate.of(2022, 4, 24), LocalDate.of(2022, 5, 13),
"Студент StartJava", null),
new Organization.Period(LocalDate.of(2022, 4, 24), LocalDate.now(),
"Студент BaseJava", null));
Organization organisation2 = new Organization("JavaOps", "https://javaops.ru/", periods2);
List<Organization.Period> periods3 = Arrays.asList(
new Organization.Period(LocalDate.of(2021, 3, 1), LocalDate.now(), "Студент", null));
Organization organisation3 = new Organization("JavaRush", "https://javarush.ru/", periods3);
List<Organization> organisations1 = new ArrayList<>();
organisations1.add(organisation2);
organisations1.add(organisation3);
OrganizationSection educationSection = new OrganizationSection(organisations1);
resume.addSection(EDUCATION, educationSection);
return resume;
}
}