Skip to content

Commit a0c3b40

Browse files
committed
GP-127 PR review is resolved
1 parent 2c52483 commit a0c3b40

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

3-0-jpa-and-hibernate/3-1-1-employee-profile/src/test/java/com/bobocode/EmployeeProfileMappingTest.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static void destroy() {
3232

3333
@Test
3434
@Order(1)
35-
@DisplayName("The employee table has correct name")
35+
@DisplayName("The employee table has a correct name")
3636
void employeeTableHasCorrectName() {
3737
Table table = Employee.class.getAnnotation(Table.class);
3838
String tableName = table.name();
@@ -53,7 +53,7 @@ void saveEmployeeOnly() {
5353

5454
@Test
5555
@Order(3)
56-
@DisplayName("Save an employee without email")
56+
@DisplayName("Saving an employee throws an exception when the email is null")
5757
void saveEmployeeWithoutEmail() {
5858
Employee employee = createRandomEmployee();
5959
employee.setEmail(null);
@@ -64,7 +64,7 @@ void saveEmployeeWithoutEmail() {
6464

6565
@Test
6666
@Order(4)
67-
@DisplayName("Save an employee without first name")
67+
@DisplayName("Saving an employee throws an exception when the first name is null")
6868
void saveEmployeeWithoutFirstName() {
6969
Employee employee = createRandomEmployee();
7070
employee.setFistName(null);
@@ -75,7 +75,7 @@ void saveEmployeeWithoutFirstName() {
7575

7676
@Test
7777
@Order(5)
78-
@DisplayName("Save an employee without last name")
78+
@DisplayName("Saving an employee throws an exception when the last name is null")
7979
void testSaveEmployeeWithoutLastName() {
8080
Employee employee = createRandomEmployee();
8181
employee.setLastName(null);
@@ -86,7 +86,7 @@ void testSaveEmployeeWithoutLastName() {
8686

8787
@Test
8888
@Order(6)
89-
@DisplayName("The employee profile table has correct name")
89+
@DisplayName("The employee profile table has a correct name")
9090
void employeeProfileTableHasCorrectName() {
9191
Table table = EmployeeProfile.class.getAnnotation(Table.class);
9292
String tableName = table.name();
@@ -96,7 +96,7 @@ void employeeProfileTableHasCorrectName() {
9696

9797
@Test
9898
@Order(7)
99-
@DisplayName("Save only a profile of employee")
99+
@DisplayName("Save only an employee profile")
100100
void saveEmployeeProfileOnly() {
101101
EmployeeProfile employeeProfile = createRandomEmployeeProfile();
102102
employeeProfile.setId(666L);
@@ -156,7 +156,7 @@ void addEmployeeProfile() {
156156

157157
@Test
158158
@Order(11)
159-
@DisplayName("Add employee profile without position")
159+
@DisplayName("Adding an employee profile throws an exception when the position is null")
160160
void addEmployeeWithoutPosition() {
161161
Employee employee = createRandomEmployee();
162162
emUtil.performWithinTx(entityManager -> entityManager.persist(employee));
@@ -175,7 +175,7 @@ void addEmployeeWithoutPosition() {
175175

176176
@Test
177177
@Order(12)
178-
@DisplayName("Add employee profile without department")
178+
@DisplayName("Adding an employee profile throws an exception when the department is null")
179179
void addEmployeeWithoutDepartment() {
180180
Employee employee = createRandomEmployee();
181181
emUtil.performWithinTx(entityManager -> entityManager.persist(employee));

3-0-jpa-and-hibernate/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<dependency>
2424
<groupId>org.postgresql</groupId>
2525
<artifactId>postgresql</artifactId>
26-
<version>42.2.23.jre7</version>
26+
<version>42.2.23</version>
2727
</dependency>
2828
<dependency>
2929
<groupId>com.h2database</groupId>
@@ -45,7 +45,7 @@
4545
<dependency>
4646
<groupId>javax.xml.bind</groupId>
4747
<artifactId>jaxb-api</artifactId>
48-
<version>2.4.0-b180830.0359</version>
48+
<version>2.3.1</version>
4949
</dependency>
5050

5151
<dependency>

0 commit comments

Comments
 (0)