mheinzerling / jforum2

Automatically exported from code.google.com/p/jforum2
Other
0 stars 0 forks source link

Testrun: invalid db connection settings causes tests to run forever #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure an invalid DB (e.g. database.connection.dbname=<unknown_name>) in 
mysql.properties)
2. run test POPListenerTestCase

What is the expected output? What do you see instead?
Expected is that the test catches and reports the error correctly, but instead 
the test runs forever, main thread hangs in method 
ForumRepository.start(ForumDAO, CategoryDAO, ConfigDAO), when calling 
loadCategories()-> CategoryDAO.selectAll() -> 
JForumExecutionContext.getConnection()

Log-Output see attached file. 

Original issue reported on code.google.com by heribender on 1 Nov 2013 at 3:29

GoogleCodeExporter commented 9 years ago
File attach forgotten:

Original comment by heribender on 1 Nov 2013 at 3:30

Attachments: