Skip to content

Commit

Permalink
Merge pull request #2805 from hogimn/test
Browse files Browse the repository at this point in the history
Update test code to clarify the consequence
  • Loading branch information
hazendaz committed Feb 13, 2023
2 parents 661e574 + b2bc913 commit db754ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
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 db754ce

Please sign in to comment.