need a small information on Junits when testing with Maven and eclipse. When I am running test cases in eclipse getting passed. But the same test cases when I run through maven getting failed. I am using Spring with Junit. After testInsertClassUnit executed successfully.While executing flushHibernateSession() of testInsertMap() method it is hanging.