You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
942 B
Java
33 lines
942 B
Java
1 year ago
|
package com.supervision;
|
||
|
|
||
|
import cn.hutool.core.io.FileUtil;
|
||
|
import cn.hutool.core.io.IoUtil;
|
||
|
import com.supervision.service.AskService;
|
||
|
import com.supervision.util.MinioUtil;
|
||
|
import org.junit.Test;
|
||
|
import org.junit.runner.RunWith;
|
||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||
|
|
||
|
import java.io.BufferedInputStream;
|
||
|
import java.io.File;
|
||
|
|
||
|
|
||
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||
|
public class VideoUpdateTest {
|
||
|
|
||
|
@Test
|
||
|
public void contextLoads() throws Exception {
|
||
|
|
||
|
|
||
|
BufferedInputStream inputStream = FileUtil.getInputStream("F:\\supervision\\doc\\数字人视频\\final_video\\final_video\\0.mp4");
|
||
|
|
||
|
|
||
|
String s = MinioUtil.uploadFile(inputStream, "ddd");
|
||
|
System.out.println(s);
|
||
|
|
||
|
}
|
||
|
}
|