summaryrefslogtreecommitdiff
path: root/src/test/java/com/mesasoft/cn/dao/DownloadedDAOTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/mesasoft/cn/dao/DownloadedDAOTest.java')
-rw-r--r--src/test/java/com/mesasoft/cn/dao/DownloadedDAOTest.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/java/com/mesasoft/cn/dao/DownloadedDAOTest.java b/src/test/java/com/mesasoft/cn/dao/DownloadedDAOTest.java
new file mode 100644
index 0000000..df8ec44
--- /dev/null
+++ b/src/test/java/com/mesasoft/cn/dao/DownloadedDAOTest.java
@@ -0,0 +1,30 @@
+package com.mesasoft.cn.dao;
+
+import com.mesasoft.cn.SketchApplicationTest;
+import com.zhazhapan.modules.constant.ValueConsts;
+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/1/19
+ */
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class DownloadedDAOTest {
+
+ static {
+ SketchApplicationTest.setSettings();
+ }
+
+ @Autowired
+ DownloadedDAO downloadDAO;
+
+ @Test
+ public void testGetDownloadBy() {
+ System.out.println(downloadDAO.listDownloadedBy(1, 1, "", ValueConsts.ZERO_INT, 0));
+ }
+}