Skip to content

Commit

Permalink
handle error in Blog test class
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit committed Apr 9, 2024
1 parent 96e0369 commit 076ca4b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void addBlog_ValidInput_Success(){
BlogEntity blogEntity = new BlogEntity();
blogEntity.setSubtitle("Blog-Subtitle");
blogEntity.setBody("This is test blog entity body");
blogEntity.setImageCover("Test image cover");
// blogEntity.setImageCover("Test image cover");
blogEntity.setTitle("DSA");
blogEntity.setCreatedAt(LocalDateTime.now());

Expand All @@ -91,7 +91,7 @@ public void addBlog_ValidInput_Success(){
savedBlogEntity.setId(1L);
savedBlogEntity.setSubtitle("Blog-Subtitle");
savedBlogEntity.setBody("This is test blog entity body");
savedBlogEntity.setImageCover("Test image cover");
// savedBlogEntity.setImageCover("Test image cover");
savedBlogEntity.setTitle("DSA");
savedBlogEntity.setCreatedAt(LocalDateTime.now());

Expand Down Expand Up @@ -135,7 +135,7 @@ public void getBlogById_ValidInput_Success(){
savedBlogEntity.setId(1L);
savedBlogEntity.setSubtitle("Blog-Subtitle");
savedBlogEntity.setBody("This is test blog entity body");
savedBlogEntity.setImageCover("Test image cover");
// savedBlogEntity.setImageCover("Test image cover");
savedBlogEntity.setTitle("DSA");
savedBlogEntity.setCreatedAt(LocalDateTime.now());

Expand Down Expand Up @@ -182,7 +182,7 @@ public void deleteById_ValidInput_Success(){
savedBlogEntity.setId(1L);
savedBlogEntity.setSubtitle("Blog-Subtitle");
savedBlogEntity.setBody("This is test blog entity body");
savedBlogEntity.setImageCover("Test image cover");
// savedBlogEntity.setImageCover("Test image cover");
savedBlogEntity.setTitle("DSA");
savedBlogEntity.setCreatedAt(LocalDateTime.now());

Expand Down

0 comments on commit 076ca4b

Please sign in to comment.