Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import lombok.SneakyThrows;

/**
* EgovAopExceptionTransfer 단위 테스트
*
Expand All @@ -31,7 +33,8 @@ void setUp() {

@Test
@DisplayName("doAfterThrowingExceptionTransferService - ExceptionTransfer.transfer 위임 확인")
void testDoAfterThrowingDelegatesToExceptionTransfer() throws Exception {
@SneakyThrows
void testDoAfterThrowingDelegatesToExceptionTransfer() {
JoinPoint joinPoint = mock(JoinPoint.class);
Exception ex = new RuntimeException("서비스 예외");

Expand All @@ -42,7 +45,8 @@ void testDoAfterThrowingDelegatesToExceptionTransfer() throws Exception {

@Test
@DisplayName("setExceptionTransfer - 의존성 주입 후 transfer 호출 가능")
void testSetExceptionTransfer() throws Exception {
@SneakyThrows
void testSetExceptionTransfer() {
ExceptionTransfer another = mock(ExceptionTransfer.class);
exceptionTransfer.setExceptionTransfer(another);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import egovframework.example.sample.service.SampleVO;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

/**
Expand Down Expand Up @@ -40,7 +41,8 @@ class SampleMapperTestInsertSampleTest {
private EgovIdGnrService egovIdGnrService;

@Test
void test() throws Exception {
@SneakyThrows
void test() {
// given
final SampleVO sampleVO = new SampleVO();
sampleVO.setId(egovIdGnrService.getNextStringId());
Expand Down