package com.izouma.jmrh.service;

import com.izouma.jmrh.ApplicationTests;
import com.izouma.jmrh.dto.PageQuery;
import com.izouma.jmrh.dto.PostDTO;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;

public class PostServiceTest extends ApplicationTests {
    @Autowired
    PostService postService;

    @Test
    public void allDTO() {
        Page<PostDTO> page = postService.allDTO(new PageQuery());
        System.out.println(page);
    }
}