3 ms·
My approach when I find myself wanting to test private methods is often to extract a new class, for which the methods under question form the public interface (
by pbh101 11y ago
My approach when I find myself wanting to test private methods is often to extract a new class, for which the methods under question form the public interface (working with Java here).