package com.ifish.serviceImpl;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.alibaba.fastjson.JSONObject;
import com.ifish.dto.PageingDto;
import com.ifish.service.UserActivityService;
import com.ifish.validator.PageParam;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value = "classpath*:/application-context.xml")
public class UserActivityServiceImplTest {

    @Autowired
    private UserActivityService userActivityService;

    @Test
    public void testGetUserActivityByPage() {
//		PageParam param = new PageParam(100, 0, 10);
//		PageingDto<?> dto = userActivityService.getUserActivityByPage(param);
//		System.out.println(JSONObject.toJSON(dto));
        System.out.println("com.ifish.serviceImpl.UserActivityServiceImplTest.testGetUserActivityByPage()");
    }

}
