-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from sjmjys954646/feature/2-branch-watching
Feature/2 branch watching
- Loading branch information
Showing
6 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.example.demo.video; | ||
|
||
public class VideoRequest { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -292,12 +292,20 @@ void findAllTest() throws Exception{ | |
|
||
@Test | ||
@Order(2) | ||
void findTest() throws Exception{ | ||
VideoResponse.VideoResponseDTO videoFind = videoService.findVideo(1); | ||
org.assertj.core.api.Assertions.assertThat(1) | ||
.isEqualTo(videoFind.getVideoID()); | ||
Assertions.assertThat("asdfasdf") | ||
.isEqualTo(videoFind.getSubtitles().get(0).getKorSubtitleContent()); | ||
void HistoryTest() throws Exception{ | ||
User user2 = User.builder() | ||
.email("[email protected]") | ||
.password("asdf1234!") | ||
.firstName("Jin") | ||
.lastName("Seung") | ||
.country("Korea") | ||
.age(21) | ||
.role(Role.MENTOR) | ||
.phone("010-0000-0000") | ||
.build(); | ||
|
||
userJPARepository.save(user2); | ||
VideoResponse.VideoResponseDTO videoFind = videoService.findVideo(3,user2); | ||
} | ||
|
||
@Test | ||
|
@@ -312,13 +320,12 @@ void findHistoryTest() throws Exception{ | |
@Order(2) | ||
void findUserCategoryTest() throws Exception{ | ||
List<VideoResponse.VideoAllResponseDTO> findUserCategory = videoService.findUserCategory(1); | ||
|
||
} | ||
|
||
@Test | ||
@Order(2) | ||
@Order(3) | ||
void findOmTest() throws Exception { | ||
List<VideoResponse.VideoPageResponseDTO> videoFind = videoService.findAllVideo(1); | ||
List<VideoResponse.VideoAllResponseDTO> videoFind = videoService.findHistoryVideo(0,2); | ||
|
||
String responseBody = om.writeValueAsString(videoFind); | ||
|
||
|