@@ -30,7 +30,8 @@ void testThatGeneralInsertVisitorErrorsForColumnToColumnMapping() {
30
30
GeneralInsertVisitor tv = new GeneralInsertVisitor ();
31
31
ColumnToColumnMapping mapping = ColumnToColumnMapping .of (table .id , table .description );
32
32
33
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
33
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
34
+ .withMessage ("Internal Error 4" );
34
35
}
35
36
36
37
@ Test
@@ -39,7 +40,8 @@ void testThatGeneralInsertVisitorErrorsForSelectMapping() {
39
40
GeneralInsertVisitor tv = new GeneralInsertVisitor ();
40
41
SelectMapping mapping = SelectMapping .of (table .id , SqlBuilder .select (table .id ).from (table ));
41
42
42
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
43
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
44
+ .withMessage ("Internal Error 1" );
43
45
}
44
46
45
47
@ Test
@@ -48,7 +50,8 @@ void testThatGeneralInsertVisitorErrorsForPropertyMapping() {
48
50
GeneralInsertVisitor tv = new GeneralInsertVisitor ();
49
51
PropertyMapping mapping = PropertyMapping .of (table .id , "id" );
50
52
51
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
53
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
54
+ .withMessage ("Internal Error 2" );
52
55
}
53
56
54
57
@ Test
@@ -57,7 +60,8 @@ void testThatGeneralInsertVisitorErrorsForPropertyWhenPresentMapping() {
57
60
GeneralInsertVisitor tv = new GeneralInsertVisitor ();
58
61
PropertyWhenPresentMapping mapping = PropertyWhenPresentMapping .of (table .id , "id" , () -> 3 );
59
62
60
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
63
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
64
+ .withMessage ("Internal Error 3" );
61
65
}
62
66
63
67
@ Test
@@ -66,7 +70,8 @@ void testThatInsertVisitorErrorsForColumnToColumnMapping() {
66
70
InsertVisitor tv = new InsertVisitor ();
67
71
ColumnToColumnMapping mapping = ColumnToColumnMapping .of (table .id , table .description );
68
72
69
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
73
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
74
+ .withMessage ("Internal Error 9" );
70
75
}
71
76
72
77
@ Test
@@ -75,7 +80,8 @@ void testThatInsertVisitorErrorsForSelectMapping() {
75
80
InsertVisitor tv = new InsertVisitor ();
76
81
SelectMapping mapping = SelectMapping .of (table .id , SqlBuilder .select (table .id ).from (table ));
77
82
78
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
83
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
84
+ .withMessage ("Internal Error 8" );
79
85
}
80
86
81
87
@ Test
@@ -84,7 +90,8 @@ void testThatInsertVisitorErrorsForValueMapping() {
84
90
InsertVisitor tv = new InsertVisitor ();
85
91
ValueMapping <Integer > mapping = ValueMapping .of (table .id , () -> 3 );
86
92
87
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
93
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
94
+ .withMessage ("Internal Error 5" );
88
95
}
89
96
90
97
@ Test
@@ -93,7 +100,8 @@ void testThatInsertVisitorErrorsForValueOrNullMapping() {
93
100
InsertVisitor tv = new InsertVisitor ();
94
101
ValueOrNullMapping <Integer > mapping = ValueOrNullMapping .of (table .id , () -> 3 );
95
102
96
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
103
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
104
+ .withMessage ("Internal Error 6" );
97
105
}
98
106
99
107
@ Test
@@ -102,7 +110,8 @@ void testThatInsertVisitorErrorsForValueWhenPresentMapping() {
102
110
InsertVisitor tv = new InsertVisitor ();
103
111
ValueWhenPresentMapping <Integer > mapping = ValueWhenPresentMapping .of (table .id , () -> 3 );
104
112
105
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
113
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
114
+ .withMessage ("Internal Error 7" );
106
115
}
107
116
108
117
@ Test
@@ -111,7 +120,8 @@ void testThatMultiRowInsertVisitorErrorsForColumnToColumnMapping() {
111
120
MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
112
121
ColumnToColumnMapping mapping = ColumnToColumnMapping .of (table .id , table .description );
113
122
114
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
123
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
124
+ .withMessage ("Internal Error 9" );
115
125
}
116
126
117
127
@ Test
@@ -120,7 +130,8 @@ void testThatMultiRowInsertVisitorErrorsForSelectMapping() {
120
130
MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
121
131
SelectMapping mapping = SelectMapping .of (table .id , SqlBuilder .select (table .id ).from (table ));
122
132
123
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
133
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
134
+ .withMessage ("Internal Error 8" );
124
135
}
125
136
126
137
@ Test
@@ -129,7 +140,8 @@ void testThatMultiRowInsertVisitorErrorsForValueMapping() {
129
140
MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
130
141
ValueMapping <Integer > mapping = ValueMapping .of (table .id , () -> 3 );
131
142
132
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
143
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
144
+ .withMessage ("Internal Error 5" );
133
145
}
134
146
135
147
@ Test
@@ -138,7 +150,8 @@ void testThatMultiRowInsertVisitorErrorsForValueWhenPresentMapping() {
138
150
MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
139
151
ValueWhenPresentMapping <Integer > mapping = ValueWhenPresentMapping .of (table .id , () -> 3 );
140
152
141
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
153
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
154
+ .withMessage ("Internal Error 7" );
142
155
}
143
156
144
157
@ Test
@@ -147,7 +160,8 @@ void testThatMultiRowInsertVisitorErrorsForPropertyWhenPresentMapping() {
147
160
MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
148
161
PropertyWhenPresentMapping mapping = PropertyWhenPresentMapping .of (table .id , "id" , () -> 3 );
149
162
150
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
163
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
164
+ .withMessage ("Internal Error 12" );
151
165
}
152
166
153
167
@ Test
@@ -156,7 +170,8 @@ void testThatUpdateVisitorErrorsForPropertyMapping() {
156
170
UpdateVisitor tv = new UpdateVisitor ();
157
171
PropertyMapping mapping = PropertyMapping .of (table .id , "id" );
158
172
159
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
173
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
174
+ .withMessage ("Internal Error 10" );
160
175
}
161
176
162
177
@ Test
@@ -165,7 +180,8 @@ void testThatUpdateVisitorErrorsForPropertyWhenPresentMapping() {
165
180
UpdateVisitor tv = new UpdateVisitor ();
166
181
PropertyWhenPresentMapping mapping = PropertyWhenPresentMapping .of (table .id , "id" , () -> 3 );
167
182
168
- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
183
+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
184
+ .withMessage ("Internal Error 11" );
169
185
}
170
186
171
187
private static class TestTable extends SqlTable {
0 commit comments