cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I mock DbxClient class using Mockito when it is final?

How can I mock DbxClient class using Mockito when it is final?

Moravia t.
Explorer | Level 4

For purpose of testing I would like to mock DbxClient class using Mockito but it is not possible. The problem is that DbxClient is final and doesn't not implement any interface. Can you please fix it?

5 Replies 5

Moravia t.
Explorer | Level 4

Sorry, I forgot to mention that I'm using Java API: https://www.dropbox.com/developers/core/start/java

Greg-DB
Dropbox Staff

I can't make any promises of course, but I'm sending this along as a request.

Moravia t.
Explorer | Level 4

Thank you very much, I will hope.

Btw, similar problem have more classes then just DbxClient, e.g. DbxWriteMode. Generally, interfaces could be good solution, I guess. 😉 Good luck.

Moravia t.
Explorer | Level 4

Is there any progress?

 

Greg-DB
Dropbox Staff

Sorry, no update on this right now.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Moravia t. Explorer | Level 4
What do Dropbox user levels mean?