Skip to content

Commit

Permalink
AutoConfigurationTestDatabase 추가해서 테스트가 독립적으로 시행되도록 하였습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
dong-yxxn committed Nov 14, 2024
1 parent f2a2df9 commit e4486f5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.transaction.annotation.Transactional;
import team7.inplace.config.annotation.CustomRepositoryTest;
import team7.inplace.place.domain.Place;
Expand All @@ -21,6 +22,7 @@

@CustomRepositoryTest
@Transactional
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
class ReviewRepositoryTest {

@PersistenceContext
Expand Down

0 comments on commit e4486f5

Please sign in to comment.