OCR-上传,校核
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
package com.jero.modules.oss.test;
|
||||
|
||||
import com.jero.LawNioApplication;
|
||||
import com.jero.modules.oss.entity.OSSFile;
|
||||
import com.jero.modules.oss.service.IOSSFileService;
|
||||
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.SpringRunner;
|
||||
|
||||
/**
|
||||
* @Author: liyawei
|
||||
* @Description:
|
||||
* @Date: Created in 13:49 2022/2/17
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = LawNioApplication.class)
|
||||
public class OCRTest {
|
||||
@Autowired
|
||||
private IOSSFileService ossFileService;
|
||||
|
||||
@Test
|
||||
public void testOssFileDelete() {
|
||||
OSSFile file = ossFileService.getById("92931b26153e986c3335adfb465dbc5e");
|
||||
boolean ok = ossFileService.delete(file);
|
||||
System.out.println(ok);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user