package org.linlinjava.jz.admin;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.linlinjava.jz.admin.web.AdminCampaignController;
import org.linlinjava.jz.db.domain.JzCampaign;
import org.linlinjava.jz.db.service.JzCampaignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import java.util.List;

@WebAppConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class campaignServiceTest {

    @Autowired
    private JzCampaignService campaignService;


    @Test
    public void test() {
        AdminCampaignController campaignController=new AdminCampaignController();
        Object obj=campaignController.list("",1,12,"create_time","desc");
     //List<JzCampaign> campaigns= campaignService.querySelective("",1,12,"create_time","desc");

    }
}
