Skip to content

Commit

Permalink
Merge pull request #24 from woorifisa-service-dev-4th/23-bug-attemptr…
Browse files Browse the repository at this point in the history
…epositoryimpltest-테스트-실패-현상-수정

🐛 AttemptRepositoryImplTest 테스트 실패 현상 수정
  • Loading branch information
namsh1125 authored Feb 17, 2025
2 parents 572f656 + d7da6b8 commit a447a78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/test/java/site/haruhana/www/config/JpaAuditingConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package site.haruhana.www.config;

import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@TestConfiguration
@EnableJpaAuditing
public class JpaAuditingConfig {

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.context.annotation.Import;
import site.haruhana.www.config.JpaAuditingConfig;
import site.haruhana.www.config.QuerydslConfig;
import site.haruhana.www.entity.*;

Expand All @@ -16,7 +17,7 @@
import static org.assertj.core.api.Assertions.assertThat;

@DataJpaTest
@Import(QuerydslConfig.class)
@Import({QuerydslConfig.class, JpaAuditingConfig.class})
class AttemptRepositoryImplTest {

@Autowired
Expand Down

0 comments on commit a447a78

Please sign in to comment.