Skip to content

Commit

Permalink
[#225] 테스트 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
km2535 committed Sep 5, 2024
1 parent 153acfd commit 445f956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package com.speech.up.auth.entity;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.*;

import java.util.Collection;
import java.util.Map;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.oauth2.core.user.OAuth2User;

import java.util.Collection;
import java.util.Map;

class CustomOAuth2UserTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public void addRecordTest() throws IOException {
when(scriptRepository.findById(scriptId)).thenReturn(Optional.of(scriptEntity));
when(recordRepository.save(any(RecordEntity.class))).thenReturn(recordEntity);

try {
// When
try {
RecordAddDto.Response actualResponse = recordService.addRecord(file, languageCode, scriptId);
assertNotNull(actualResponse);
fail("Expected UnsupportedAudioFileException to be thrown");
Expand Down

0 comments on commit 445f956

Please sign in to comment.