In some
JUnit codes I have seen that if one has to
test some method, instead of actually testing by asserting that the method returns the expected out , one simply does like below :
Seeing such code, I feel although it doesn't test the actual thing, it partially serves the purpose.
Is this acceptable practice or simply a bad practice ?
Thanks.