Currently it's difficult to test the scraper implementations because the DbConnEngine is directly used in the scraper implementations. Mocking this would require quite a bit of magic and reflection. To get around it, we can use constructor injection to inject the DAO classes thus allowing easier ways to mock the DAO while testing the scraper implementations.
Currently it's difficult to test the scraper implementations because the DbConnEngine is directly used in the scraper implementations. Mocking this would require quite a bit of magic and reflection. To get around it, we can use constructor injection to inject the DAO classes thus allowing easier ways to mock the DAO while testing the scraper implementations.