#Mockito

1 messages · Page 1 of 1 (latest)

simple glen
#

Im having an issue on using Mockito i have do everything wring but i still get this error

halcyon scarabBOT
#

<@&987246399047479336> please have a look, thanks.

halcyon scarabBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

glad arrow
#

as the error says. the class is final. u can't mock it

#

that said, it feels like ur using an old version of Java and mockito?

#

i believe the newer versions got rid of this limitation

#

that said, instead of mocking it, u could also just seed it. a seeded random always behaves the same way