我正在研究其大部分Junit失敗的項目。我的工作是解決它們並讓它們運行。我已經修復了大約200個Junit課程,但是大約有136個Junit仍然失敗,沒有理念,有時他們會失敗,有些他們工作。嘗試深入研究這個問題,並查看ehCache。它正在關機。CacheManager.clearAll拋出CacheManager已關閉Junit程序
Can any body please explain me why this exception occur in Junt testing and that to not all the time.
Please Note we have test cases for "Action" classes as well(Which deal with Servlet Context)
But interesting point all action test classes are getting passed.
Error Message is :
java.lang.IllegalStateException: The CacheManager has been shut down. It can no longer be used.
at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:1504)
at net.sf.ehcache.CacheManager.getCacheNames(CacheManager.java:1491)
at net.sf.ehcache.CacheManager.clearAll(CacheManager.java:1526)
** 50 * MINUTES ***? DAO在做什麼,重建Google的數據庫索引? O_O –