@@ -0,0 +1,1623 @@
+package org.crazydog.serviceI.impl;%0A%0Aimport org.crazydog.domain.EmployeeEntity;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.springframework.context.ApplicationContext;%0Aimport org.springframework.context.support.ClassPathXmlApplicationContext;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by johnny on 15-8-29.%0A */%0Apublic class EmployeeServiceImplTest %7B%0A%0A    ApplicationContext applicationContext;%0A    EmployeeServiceImpl employeeService;%0A    @Before%0A    public void setUp() throws Exception %7B%0A        applicationContext = new ClassPathXmlApplicationContext(%22test-application-config.xml%22);%0A        employeeService = applicationContext.getBean(%22employeeServiceImpl%22, EmployeeServiceImpl.class);%0A    %7D%0A%0A    @Test%0A    public void testGetEmployeeByName() throws Exception %7B%0A        List%3CEmployeeEntity%3E employeeEntitys = employeeService.getEmployeeByName(%22%E9%82%B9%E6%9D%A8%22);%0A        Assert.assertEquals(%22%E9%82%B9%E6%9D%A8%22, employeeEntitys.get(0).getEmpName());%0A    %7D%0A%0A    @Test%0A    public void testGetEmployeeByCode() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAdvanceSearch() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAddEntity() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testModifyEntity() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testLoadEntity() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetEntity() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetAllEntities() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testDeleteEntity() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testShowEmployeeInfo() throws Exception %7B%0A%0A    %7D%0A%7D

add employee service test.