I'm trying to do a
unit
test on my socket server code. I'm using
Mockito
but it blows up when the SUT runs to the following line because this is a final method.
I'm new to PowerMock and I am trying to use it but I am facing various issues no matter what I tried. If someone can help review the following and offer some help that'd be great.
Here is the code used for testing.
First problem
It is having a problem with the following line.
This is the full stack trace.
Second problem
If I comment out the logger I am getting the following.
Third problem
If I remove the 'extends AbstractTestNGSpringContextTests' bit on the class I am still getting the following. At this point I'm not sure what else I can try.