@@ -32,7 +32,7 @@ static void destroy() {
32
32
33
33
@ Test
34
34
@ Order (1 )
35
- @ DisplayName ("The employee table has correct name" )
35
+ @ DisplayName ("The employee table has a correct name" )
36
36
void employeeTableHasCorrectName () {
37
37
Table table = Employee .class .getAnnotation (Table .class );
38
38
String tableName = table .name ();
@@ -53,7 +53,7 @@ void saveEmployeeOnly() {
53
53
54
54
@ Test
55
55
@ Order (3 )
56
- @ DisplayName ("Save an employee without email" )
56
+ @ DisplayName ("Saving an employee throws an exception when the email is null " )
57
57
void saveEmployeeWithoutEmail () {
58
58
Employee employee = createRandomEmployee ();
59
59
employee .setEmail (null );
@@ -64,7 +64,7 @@ void saveEmployeeWithoutEmail() {
64
64
65
65
@ Test
66
66
@ Order (4 )
67
- @ DisplayName ("Save an employee without first name" )
67
+ @ DisplayName ("Saving an employee throws an exception when the first name is null " )
68
68
void saveEmployeeWithoutFirstName () {
69
69
Employee employee = createRandomEmployee ();
70
70
employee .setFistName (null );
@@ -75,7 +75,7 @@ void saveEmployeeWithoutFirstName() {
75
75
76
76
@ Test
77
77
@ Order (5 )
78
- @ DisplayName ("Save an employee without last name" )
78
+ @ DisplayName ("Saving an employee throws an exception when the last name is null " )
79
79
void testSaveEmployeeWithoutLastName () {
80
80
Employee employee = createRandomEmployee ();
81
81
employee .setLastName (null );
@@ -86,7 +86,7 @@ void testSaveEmployeeWithoutLastName() {
86
86
87
87
@ Test
88
88
@ Order (6 )
89
- @ DisplayName ("The employee profile table has correct name" )
89
+ @ DisplayName ("The employee profile table has a correct name" )
90
90
void employeeProfileTableHasCorrectName () {
91
91
Table table = EmployeeProfile .class .getAnnotation (Table .class );
92
92
String tableName = table .name ();
@@ -96,7 +96,7 @@ void employeeProfileTableHasCorrectName() {
96
96
97
97
@ Test
98
98
@ Order (7 )
99
- @ DisplayName ("Save only a profile of employee" )
99
+ @ DisplayName ("Save only an employee profile " )
100
100
void saveEmployeeProfileOnly () {
101
101
EmployeeProfile employeeProfile = createRandomEmployeeProfile ();
102
102
employeeProfile .setId (666L );
@@ -156,7 +156,7 @@ void addEmployeeProfile() {
156
156
157
157
@ Test
158
158
@ Order (11 )
159
- @ DisplayName ("Add employee profile without position" )
159
+ @ DisplayName ("Adding an employee profile throws an exception when the position is null " )
160
160
void addEmployeeWithoutPosition () {
161
161
Employee employee = createRandomEmployee ();
162
162
emUtil .performWithinTx (entityManager -> entityManager .persist (employee ));
@@ -175,7 +175,7 @@ void addEmployeeWithoutPosition() {
175
175
176
176
@ Test
177
177
@ Order (12 )
178
- @ DisplayName ("Add employee profile without department" )
178
+ @ DisplayName ("Adding an employee profile throws an exception when the department is null " )
179
179
void addEmployeeWithoutDepartment () {
180
180
Employee employee = createRandomEmployee ();
181
181
emUtil .performWithinTx (entityManager -> entityManager .persist (employee ));
0 commit comments