⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commentservicetest.java

📁 blog,介绍:ui层是用ext做的
💻 JAVA
字号:
package com.easyjf.simpleblog.dao;

import com.easyjf.core.support.query.QueryObject;
import com.easyjf.simpleblog.domain.AlbumComment;
import com.easyjf.simpleblog.domain.TopicComment;
import com.easyjf.simpleblog.service.ICommentService;
import com.easyjf.web.tools.IPageList;

public class CommentServiceTest extends JpaDaoTest {
	private ICommentService service;

	public void setService(ICommentService service) {
		this.service = service;
	}

	public void testAddTopicComment() {
		TopicComment c=new TopicComment();
		c.setContent("文章评论");
		service.addComment(c);
		this.setComplete();
	}

	public void testGetTopicComment() {
		IPageList pageList=service.getTopicCommentBy(new QueryObject());
		System.out.println(pageList.getRowCount());
	}

	public void testAddAlbumComment() {
		AlbumComment c=new AlbumComment();
		c.setContent("相册评论");
		service.addComment(c);
		this.setComplete();
	}

	public void testGetAlbumComment() {
		IPageList pageList=service.getAlbumCommentBy(new QueryObject());
		System.out.println(pageList.getRowCount());
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -