File tree 2 files changed +5
-1
lines changed
src/test/java/org/apache/ibatis/executor
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,10 @@ void shouldSelectDiscriminatedPost() throws Exception {
253
253
for (Map <String , String > m : products ) {
254
254
if ("IMAGES" .equals (m .get ("SECTION" ))) {
255
255
assertNull (m .get ("subject" ));
256
+ assertNotNull (m .get ("id" ));
256
257
} else {
257
258
assertNotNull (m .get ("subject" ));
259
+ assertNull (m .get ("id" ));
258
260
}
259
261
}
260
262
} finally {
@@ -274,8 +276,10 @@ void shouldSelect2DiscriminatedPosts() throws Exception {
274
276
for (Map <String , String > m : products ) {
275
277
if ("IMAGES" .equals (m .get ("SECTION" ))) {
276
278
assertNull (m .get ("subject" ));
279
+ assertNotNull (m .get ("id" ));
277
280
} else {
278
281
assertNotNull (m .get ("subject" ));
282
+ assertNull (m .get ("id" ));
279
283
}
280
284
}
281
285
} finally {
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ static MappedStatement prepareSelectDiscriminatedPost(final Configuration config
305
305
put ("NEWS" , discriminatorResultMap .getId ());
306
306
put ("VIDEOS" , discriminatorResultMap .getId ());
307
307
put ("PODCASTS" , discriminatorResultMap .getId ());
308
- // NEWS left out on purpose.
308
+ // IMAGES left out on purpose.
309
309
}
310
310
}).build ()).build ());
311
311
You can’t perform that action at this time.
0 commit comments