package test.repo;

import cn.com.countrygarden.bi.main.repository.SysOrganRepository;
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 java.util.List;
import java.util.Map;

/**
 * 系统的区域代码表单元测试
 * 
 * @author huangzhengjun
 *
 */
//@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration(locations = "classpath:/spring/applicationContext.xml")
public class SysPreOrganRepoTest {

	@Autowired
	private SysOrganRepository sysOrganRepository;

	/**
	 * 测试获取所有的数据
	 */
	@Test
	public void testGetAllData() {
		List<Map<String, Object>> allData = sysOrganRepository.getAllData();
		System.out.println("allData.size():" + allData.size());
		System.out.println("allData:" + allData.toString());
	}
}
