diff options
Diffstat (limited to 'src/test/java/com/mesasoft/cn/dao/sqlprovider/FileSqlProviderTest.java')
| -rw-r--r-- | src/test/java/com/mesasoft/cn/dao/sqlprovider/FileSqlProviderTest.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/java/com/mesasoft/cn/dao/sqlprovider/FileSqlProviderTest.java b/src/test/java/com/mesasoft/cn/dao/sqlprovider/FileSqlProviderTest.java new file mode 100644 index 0000000..1d1d201 --- /dev/null +++ b/src/test/java/com/mesasoft/cn/dao/sqlprovider/FileSqlProviderTest.java @@ -0,0 +1,41 @@ +package com.mesasoft.cn.dao.sqlprovider; + +import com.mesasoft.cn.SketchApplicationTest; +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/6 + */ +@RunWith(SpringRunner.class) +@SpringBootTest +public class FileSqlProviderTest { + + @Autowired + FileSqlProvider fileSqlProvider; + + @Test + public void updateAuthById() { + System.out.println(fileSqlProvider.updateAuthById()); + } + + @Test + public void getAll() { + SketchApplicationTest.setSettings(); + System.out.println(fileSqlProvider.getAll(0, 0, "", "")); + } + + @Test + public void getUserUploaded() { + System.out.println(fileSqlProvider.getUserUploaded(0, "")); + } + + @Test + public void getUserDownloaded() { + System.out.println(fileSqlProvider.getUserDownloaded(0, "")); + } +} |
