Skip to content

Commit

Permalink
bug fix in LinkDaoTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Efler committed Mar 24, 2024
1 parent aaad244 commit 7b0c917
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,9 @@ public void updateUpdatedAtSuccessfulTest() throws URISyntaxException {

linkDao.updateUpdatedAt(link, staticDateTime);

var actualLink = jdbcTemplate.queryForObject("SELECT * FROM \"Link\" WHERE id = 1", (rs, rowNum) ->
var actualLink = jdbcTemplate.queryForObject(
"SELECT * FROM \"Link\" WHERE url = 'https://i-exist.ua'",
(rs, rowNum) ->
{
try {
return new Link(
Expand All @@ -593,7 +595,7 @@ public void updateUpdatedAtSuccessfulTest() throws URISyntaxException {
assertThat(actualLink)
.isNotNull();
assertThat(actualLink.getId())
.isEqualTo(1L);
.isNotNull();
assertThat(actualLink.getUrl())
.isEqualTo(new URI("https://i-exist.ua"));
assertThat(actualLink.getCreatedAt())
Expand Down

0 comments on commit 7b0c917

Please sign in to comment.