GZMachinesWeb/.svn/pristine/6d/6dbc1555aeacdce344ad403a7da...

36 lines
1023 B
Plaintext
Raw Normal View History

2025-06-20 17:47:53 +08:00
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.MaLeaseBean;
import com.bonus.ma.service.MaLeaseService;
import com.bonus.sys.Page;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring/spring-application.xml")
public class MaLeaseControllerTest {
@Autowired
private MaLeaseService service;
@Test
public void testfindByPage() {
MaLeaseBean o = new MaLeaseBean();
Page<MaLeaseBean> page = new Page<>();
try {
String companyId = "11";
o.setCompanyId(companyId);
Page<MaLeaseBean> station = service.findByPage(o, page);
Map<String, Object> p = new HashMap<String, Object>();
p.put("list", station);
} catch (Exception e) {
}
}
}