I have a class that has the responsibility of importing contracts from a CSV to database.
The class itself has only one public method that starts the import and the other methods are all private (because only the class itself will use, and they hold the logic).
I'm starting to make tests for this class using Spock and there are many private methods, how should I test it?
Should I turn them into public to test? Test only the main method, the public one?
Whats the best?
public
. Would it cause any issues to do that? – Sapheaded