Skip to content

Commit

Permalink
Merge pull request #274 from PLADI-ALM/fix/PDS-171-getOffice-Rollback
Browse files Browse the repository at this point in the history
[PDS-171/fix] 테스트 코드 실행시 db에 저장되고 동시에 rollback되도록 수정
  • Loading branch information
chaerlo127 authored Dec 3, 2023
2 parents d99ecaf + d27a69b commit e919cfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ public class UpdateEquipmentReq {
private String category;
@Schema(type = "String", description = "비품 이미지 키", example = "photo/maxim.png", required = true)
private String imgKey;

}
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 e919cfd

Please sign in to comment.