summaryrefslogtreecommitdiff
path: root/src/test/java/com/mesasoft/cn/dao/sqlprovider/FileSqlProviderTest.java
blob: 1d1d201077cdef865d4aff2c876a4fe0b5835101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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, ""));
    }
}