@@ -30,7 +30,8 @@ void testThatGeneralInsertVisitorErrorsForColumnToColumnMapping() {
3030 GeneralInsertVisitor tv = new GeneralInsertVisitor ();
3131 ColumnToColumnMapping mapping = ColumnToColumnMapping .of (table .id , table .description );
3232
33- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
33+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
34+ .withMessage ("Internal Error 4" );
3435 }
3536
3637 @ Test
@@ -39,7 +40,8 @@ void testThatGeneralInsertVisitorErrorsForSelectMapping() {
3940 GeneralInsertVisitor tv = new GeneralInsertVisitor ();
4041 SelectMapping mapping = SelectMapping .of (table .id , SqlBuilder .select (table .id ).from (table ));
4142
42- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
43+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
44+ .withMessage ("Internal Error 1" );
4345 }
4446
4547 @ Test
@@ -48,7 +50,8 @@ void testThatGeneralInsertVisitorErrorsForPropertyMapping() {
4850 GeneralInsertVisitor tv = new GeneralInsertVisitor ();
4951 PropertyMapping mapping = PropertyMapping .of (table .id , "id" );
5052
51- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
53+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
54+ .withMessage ("Internal Error 2" );
5255 }
5356
5457 @ Test
@@ -57,7 +60,8 @@ void testThatGeneralInsertVisitorErrorsForPropertyWhenPresentMapping() {
5760 GeneralInsertVisitor tv = new GeneralInsertVisitor ();
5861 PropertyWhenPresentMapping mapping = PropertyWhenPresentMapping .of (table .id , "id" , () -> 3 );
5962
60- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
63+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
64+ .withMessage ("Internal Error 3" );
6165 }
6266
6367 @ Test
@@ -66,7 +70,8 @@ void testThatInsertVisitorErrorsForColumnToColumnMapping() {
6670 InsertVisitor tv = new InsertVisitor ();
6771 ColumnToColumnMapping mapping = ColumnToColumnMapping .of (table .id , table .description );
6872
69- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
73+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
74+ .withMessage ("Internal Error 9" );
7075 }
7176
7277 @ Test
@@ -75,7 +80,8 @@ void testThatInsertVisitorErrorsForSelectMapping() {
7580 InsertVisitor tv = new InsertVisitor ();
7681 SelectMapping mapping = SelectMapping .of (table .id , SqlBuilder .select (table .id ).from (table ));
7782
78- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
83+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
84+ .withMessage ("Internal Error 8" );
7985 }
8086
8187 @ Test
@@ -84,7 +90,8 @@ void testThatInsertVisitorErrorsForValueMapping() {
8490 InsertVisitor tv = new InsertVisitor ();
8591 ValueMapping <Integer > mapping = ValueMapping .of (table .id , () -> 3 );
8692
87- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
93+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
94+ .withMessage ("Internal Error 5" );
8895 }
8996
9097 @ Test
@@ -93,7 +100,8 @@ void testThatInsertVisitorErrorsForValueOrNullMapping() {
93100 InsertVisitor tv = new InsertVisitor ();
94101 ValueOrNullMapping <Integer > mapping = ValueOrNullMapping .of (table .id , () -> 3 );
95102
96- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
103+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
104+ .withMessage ("Internal Error 6" );
97105 }
98106
99107 @ Test
@@ -102,7 +110,8 @@ void testThatInsertVisitorErrorsForValueWhenPresentMapping() {
102110 InsertVisitor tv = new InsertVisitor ();
103111 ValueWhenPresentMapping <Integer > mapping = ValueWhenPresentMapping .of (table .id , () -> 3 );
104112
105- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
113+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
114+ .withMessage ("Internal Error 7" );
106115 }
107116
108117 @ Test
@@ -111,7 +120,8 @@ void testThatMultiRowInsertVisitorErrorsForColumnToColumnMapping() {
111120 MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
112121 ColumnToColumnMapping mapping = ColumnToColumnMapping .of (table .id , table .description );
113122
114- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
123+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
124+ .withMessage ("Internal Error 9" );
115125 }
116126
117127 @ Test
@@ -120,7 +130,8 @@ void testThatMultiRowInsertVisitorErrorsForSelectMapping() {
120130 MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
121131 SelectMapping mapping = SelectMapping .of (table .id , SqlBuilder .select (table .id ).from (table ));
122132
123- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
133+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
134+ .withMessage ("Internal Error 8" );
124135 }
125136
126137 @ Test
@@ -129,7 +140,8 @@ void testThatMultiRowInsertVisitorErrorsForValueMapping() {
129140 MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
130141 ValueMapping <Integer > mapping = ValueMapping .of (table .id , () -> 3 );
131142
132- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
143+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
144+ .withMessage ("Internal Error 5" );
133145 }
134146
135147 @ Test
@@ -138,7 +150,8 @@ void testThatMultiRowInsertVisitorErrorsForValueWhenPresentMapping() {
138150 MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
139151 ValueWhenPresentMapping <Integer > mapping = ValueWhenPresentMapping .of (table .id , () -> 3 );
140152
141- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
153+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
154+ .withMessage ("Internal Error 7" );
142155 }
143156
144157 @ Test
@@ -147,7 +160,8 @@ void testThatMultiRowInsertVisitorErrorsForPropertyWhenPresentMapping() {
147160 MultiRowInsertVisitor tv = new MultiRowInsertVisitor ();
148161 PropertyWhenPresentMapping mapping = PropertyWhenPresentMapping .of (table .id , "id" , () -> 3 );
149162
150- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
163+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
164+ .withMessage ("Internal Error 12" );
151165 }
152166
153167 @ Test
@@ -156,7 +170,8 @@ void testThatUpdateVisitorErrorsForPropertyMapping() {
156170 UpdateVisitor tv = new UpdateVisitor ();
157171 PropertyMapping mapping = PropertyMapping .of (table .id , "id" );
158172
159- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
173+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
174+ .withMessage ("Internal Error 10" );
160175 }
161176
162177 @ Test
@@ -165,7 +180,8 @@ void testThatUpdateVisitorErrorsForPropertyWhenPresentMapping() {
165180 UpdateVisitor tv = new UpdateVisitor ();
166181 PropertyWhenPresentMapping mapping = PropertyWhenPresentMapping .of (table .id , "id" , () -> 3 );
167182
168- assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ));
183+ assertThatExceptionOfType (UnsupportedOperationException .class ).isThrownBy (() -> tv .visit (mapping ))
184+ .withMessage ("Internal Error 11" );
169185 }
170186
171187 private static class TestTable extends SqlTable {
0 commit comments