GZMachinesWeb/.svn/pristine/75/75c8172c661496f089706881ff1...

33 lines
962 B
Plaintext

package com.bonus.ma.controller;
import java.util.HashMap;
import java.util.Map;
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.bonus.ma.beans.MachineBean;
import com.bonus.ma.service.MachineService;
import com.bonus.sys.Page;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring/spring-application.xml")
public class MachineControllerTest {
@Autowired
private MachineService service;
@Test
public void testfindByPage() {
MachineBean o = new MachineBean();
Page<MachineBean> page = new Page<>();
try {
Page<MachineBean> station = service.findByPage(o, page);
Map<String, Object> p = new HashMap<String, Object>();
p.put("list", station);
} catch (Exception e) {
}
}
}