Skip to content

Commit

Permalink
feat: test에 activeprofile 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Apr 8, 2024
1 parent d7bc228 commit 052c29a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/com/uspray/uspray/common/MemberTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.transaction.annotation.Transactional;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@Transactional
@ActiveProfiles("set3")
public abstract class MemberTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.transaction.annotation.Transactional;

//@DataJpaTest
@Transactional
@SpringBootTest
@ActiveProfiles("set3")
public abstract class RepositoryTest {

@Autowired
Expand Down

0 comments on commit 052c29a

Please sign in to comment.