k0r0pt / Project-Tauro

A Router WiFi key recovery/cracking tool with a twist.
GNU General Public License v3.0
88 stars 16 forks source link

Easing testing of the Scraper implementations #22

Closed sumitsarkar closed 5 years ago

sumitsarkar commented 5 years ago

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.