src/test/java/com/zhazhapan/efo/dao/FileDAOTest.java
(完整代码) 791Bpackage com.zhazhapan.efo.dao;
import com.zhazhapan.efo.EfoApplicationTest;
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() {
EfoApplicationTest.setSettings();
System.out.println(Formatter.listToJson(fileDAO.listUserDownloaded(2, 0, "")));
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
