I have a spring boot application that reads from an excel document. This is currently being done by a service that my controller uses.
Currently the path of the document is hard coded in the Service class. I would like to know, if this is the best way to do it.
I would also like to know the best practises for unit testing my code. How do I ensure that I have no dependency with the actual file. My helper method is private. I am having troubles mocking it.