package com.mycompany.project.test;
import com.mycompany.project.dao.EmployeesDao;
import com.mycompany.project.model.Employees;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import java.util.List;
@ContextConfiguration(locations={"/applicationContext.xml"})
public class TestCase extends AbstractJUnit4SpringContextTests{
@Autowired
private EmployeesDao employeesDao;
@Test
public void testEmployeesDao(){
List<Employees> list = employeesDao.findAll();
System.out.println("list.size="+list.size());
}
}