Skip to content

Commit

Permalink
Refactor: Extract to constant for title
Browse files Browse the repository at this point in the history
  • Loading branch information
currenjin committed Mar 4, 2025
1 parent d3a2fca commit b43ad24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

@SpringBootTest
public class DirtyCheckingBasicTest {
public static final String OLD_TITLE = "원본 제목";
public static final String NEW_TITLE = "변경된 제목";
@PersistenceContext
private EntityManager entityManager;
Expand All @@ -33,7 +34,7 @@ public void setUp() {
postRepository.deleteAll();

Post post = new Post();
post.setTitle("원본 제목");
post.setTitle(OLD_TITLE);
Post savedPost = postRepository.save(post);
testPostId = savedPost.getId();
}
Expand Down

0 comments on commit b43ad24

Please sign in to comment.