Skip to content

Commit

Permalink
[BE] 테스트용 bean definition overriding 설정 파일 분리 (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilyang authored May 17, 2024
1 parent 5f50c48 commit d482d45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.core.task.SyncTaskExecutor;
import org.springframework.test.context.TestPropertySource;
import team.teamby.teambyteam.common.ServiceTest;
import team.teamby.teambyteam.common.fixtures.ScheduleFixtures;
import team.teamby.teambyteam.icalendar.application.event.CreateIcalendarEvent;
Expand All @@ -26,6 +27,7 @@
import static org.mockito.Mockito.verify;
import static team.teamby.teambyteam.common.fixtures.TeamPlaceFixtures.ENGLISH_TEAM_PLACE;

@TestPropertySource(locations = "classpath:bean-definition-overriding-config.properties")
class IcalendarEventListenerTest extends ServiceTest {

@Autowired
Expand Down
3 changes: 0 additions & 3 deletions backend/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
max-file-size: 5MB
max-request-size: 20MB

main:
allow-bean-definition-overriding: true

# for test
h2:
console:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.main.allow-bean-definition-overriding=true

0 comments on commit d482d45

Please sign in to comment.