Skip to content

Commit

Permalink
[PDS-171] fix:테스트시 db에 저장되고 rollback되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeseunghakhello committed Dec 2, 2023
1 parent d99ecaf commit 588fd14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ public class UpdateEquipmentReq {
private String category;
@Schema(type = "String", description = "비품 이미지 키", example = "photo/maxim.png", required = true)
private String imgKey;
@Schema(type = "Long", description = "비품 등록자", example = "1", required = true)
@NotNull(message = "E0003")
private Long userId;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package com.example.pladialmserver.global;

import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.transaction.annotation.Transactional;

@ActiveProfiles("test")
@SpringBootTest
public class IntegrationTestSupport {
@Transactional
@Rollback
public abstract class IntegrationTestSupport {
}

0 comments on commit 588fd14

Please sign in to comment.