diff options
| author | zhanghongqing <[email protected]> | 2022-08-09 16:54:16 +0800 |
|---|---|---|
| committer | zhanghongqing <[email protected]> | 2022-08-09 16:54:16 +0800 |
| commit | b3fa11d4b1b5a68d7b04fde5eb6cfbda557927eb (patch) | |
| tree | a49d344e49fc427fbf4cf00aa4963c4d04cd98a4 /src/test/java/com/mesasoft/cn/dao/FileDAOTest.java | |
| parent | d8a2be0d094ac9ba2d47c81ebf03b3fe6e34a078 (diff) | |
Diffstat (limited to 'src/test/java/com/mesasoft/cn/dao/FileDAOTest.java')
| -rw-r--r-- | src/test/java/com/mesasoft/cn/dao/FileDAOTest.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/java/com/mesasoft/cn/dao/FileDAOTest.java b/src/test/java/com/mesasoft/cn/dao/FileDAOTest.java new file mode 100644 index 0000000..d96328c --- /dev/null +++ b/src/test/java/com/mesasoft/cn/dao/FileDAOTest.java @@ -0,0 +1,32 @@ +package com.mesasoft.cn.dao; + +import com.mesasoft.cn.SketchApplicationTest; +import com.zhazhapan.util.Formatter; +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 pantao + * @since 2018/2/5 + */ +@RunWith(SpringRunner.class) +@SpringBootTest +public class FileDAOTest { + + @Autowired + FileDAO fileDAO; + + @Test + public void testRemoveFile() { + assert fileDAO.removeById(3); + } + + @Test + public void testGetUserDownloaded() { + SketchApplicationTest.setSettings(); + System.out.println(Formatter.listToJson(fileDAO.listUserDownloaded(2, 0, ""))); + } +} |
