Changed method signature in PostDao interface
Fixed: Dao's extend HibernateTemplate now, not
HibernateDaoSupport
Added TestNg dependency to pom.xml
Added 3 tests for UserDao
Config files moved from WEB-INF to /recources
Added spring-test dependency to pom.xml
Configured spring test runner and test spring context;
Let's use junit, not testng
Edited test spring config;
Completed 3 tests for UserDao
Added H2 database dependency to pom.xml for in-memory DB
Changed test spring config:
deleted unnecessary declarations;
data source changed to in-memory H2 database;
added database structure autodrop after tests;
Changed user dao tests implementation to avoid unique constraints violation
Implemented UserDaoImpl
Prepared maven dependencies for migration from junit to testNG
Changed MessageDao contract: sendMessage(Message) method have to return
id of sent message.
Changed Message class contract: boolean fields isDeletedBySender,
isDeletedByReceived, isRead is nullable in Dao now (but Dao have to set it
before saving to DB)
UserDaoTest is now usign TestNG instead of JUnit
Moved test-spring-config.xml from source resources directory to test one
Changed Assert method parameter order to TestNG style
sessionFactory in test-spring-config.xml renamed to testSessionFactory
Changed MessageDao contract:
added methods getIncomingMessages(User, int, int) and
 getOutcomingMessages(User, int, int) which take number of messages per page
 as third parameter