Skip to content

Commit

Permalink
[fix] 기존의 CheckedException 제거
Browse files Browse the repository at this point in the history
HttpStatusException을 상속받은 RuntimeException으로 변경
  • Loading branch information
Dr-KoKo committed Aug 13, 2024
1 parent 5235f93 commit 1c0386f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import camp.woowak.lab.payaccount.repository.PayAccountRepository;
import camp.woowak.lab.vendor.domain.Vendor;
import camp.woowak.lab.vendor.exception.DuplicateEmailException;
import camp.woowak.lab.vendor.exception.InvalidCreationException;
import camp.woowak.lab.vendor.repository.VendorRepository;
import camp.woowak.lab.vendor.service.command.SignUpVendorCommand;
import camp.woowak.lab.web.authentication.NoOpPasswordEncoder;
Expand All @@ -36,7 +35,7 @@ class SignUpVendorServiceTest implements VendorFixture {

@Test
@DisplayName("[성공] Vendor가 저장된다.")
void success() throws InvalidCreationException, DuplicateEmailException {
void success() throws DuplicateEmailException {
// given
given(passwordEncoder.encode(Mockito.anyString())).willReturn("password");
PayAccount payAccount = createPayAccount();
Expand All @@ -56,7 +55,7 @@ void success() throws InvalidCreationException, DuplicateEmailException {

@Test
@DisplayName("[예외] 가입된 이메일인 경우 예외 발생")
void failWithDuplicateEmail() throws InvalidCreationException, DuplicateEmailException {
void failWithDuplicateEmail() throws DuplicateEmailException {
// given
given(passwordEncoder.encode(Mockito.anyString())).willReturn("password");
given(payAccountRepository.save(Mockito.any(PayAccount.class))).willReturn(createPayAccount());
Expand Down

0 comments on commit 1c0386f

Please sign in to comment.