Hi I'm beginning to work with
mockito, i took some course in pluralsight and now that i know how to use mockito and how it works, i don't know what to begin to apply
unit testing, for example, i begin with one service, is a pretty short one, see it below:
And this is the test code i wrote:
So this test looks useless to me, if i mock the returning query, why then should i make a test for this service, i know tests must be independent from data, but in this case i don' t know if remove this test, or what exactly should i test from this service...