Skip to content

Commit

Permalink
Update test code to clarify the consequence
Browse files Browse the repository at this point in the history
  • Loading branch information
hogimn committed Feb 11, 2023
1 parent 661e574 commit b2bc913
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,10 @@ void shouldSelectDiscriminatedPost() throws Exception {
for (Map<String, String> m : products) {
if ("IMAGES".equals(m.get("SECTION"))) {
assertNull(m.get("subject"));
assertNotNull(m.get("id"));
} else {
assertNotNull(m.get("subject"));
assertNull(m.get("id"));
}
}
} finally {
Expand All @@ -274,8 +276,10 @@ void shouldSelect2DiscriminatedPosts() throws Exception {
for (Map<String, String> m : products) {
if ("IMAGES".equals(m.get("SECTION"))) {
assertNull(m.get("subject"));
assertNotNull(m.get("id"));
} else {
assertNotNull(m.get("subject"));
assertNull(m.get("id"));
}
}
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static MappedStatement prepareSelectDiscriminatedPost(final Configuration config
put("NEWS", discriminatorResultMap.getId());
put("VIDEOS", discriminatorResultMap.getId());
put("PODCASTS", discriminatorResultMap.getId());
// NEWS left out on purpose.
// IMAGES left out on purpose.
}
}).build()).build());

Expand Down

0 comments on commit b2bc913

Please sign in to comment.