???????????????????????????????????????????????????????AbstractTransactionalSpringContextTests
UserDAOImplTest.java
public class UserDAOImplTest extends AbstractSystemTest ...{
public UserDAO getUserDAO() ...{
return (UserDAO) applicationContext.getBean("userDAO");
}
public void testLoadObject() ...{
User user = (User) this.getUserDAO().find("01");
assertNull(user);
}
}
UserServiceImplTest.java
public class UserServiceImplTest extends AbstractSystemTest ...{
public UserService getUserService() ...{
return (UserService) applicationContext.getBean("userService");
}
public void testLoadUser() ...{
User user = (User) this.getUserService().find("01");
assertNull(user);
}
}
???????????????????????????????д???????????????????????????spring?е??????????????context??????????????????????????????????spring??????????????????????????
?????????????????к???????????service???????????????????????DAO????????domain???????????????hibernate????????У????????????????????????????????????????????????????????????sessionFacotry??????????????domain???????????????????????
????unmmaped class??????