测试
This commit is contained in:
parent
d2a58ec221
commit
ad1c20277a
@ -199,7 +199,8 @@ public class MediaServiceTest {
|
||||
@Test
|
||||
void getMediaListTest() {
|
||||
ZlmResponse<List<MediaResp>> mediaList = zlmMediaService.getMediaList(GetMediaList.builder().build());
|
||||
List<MediaResp> data = mediaList.getData();
|
||||
log.info("{}", mediaList);
|
||||
List<MediaResp> data = Optional.ofNullable(mediaList.getData()).orElse(Collections.emptyList());
|
||||
log.info("流数量 => {}", data.size());
|
||||
data.forEach((item) -> {
|
||||
log.info("\n{}", JsonUtils.toJson(item));
|
||||
|
Loading…
Reference in New Issue
Block a user