Re:Write tests. Not too many. Mostly integration
by hacker_9 on Friday October 27, 2017 @09:40AM
(#15568117)
In C# we have Moq that can mock normal classes, though it requires adding 'virtual' to every method you want to override which is a code smell too. In Java everything being virtual by default I guess it doesn't matter. We like to always keep an interface around as it gets the developer used to working that way and keeps the code consistent. Visual Studio provides a quick shortcut to auto gen the interface too.
[ Parent
| on HN ]
There are no comments on this comment yet.