cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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 3

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

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

Moravia t.
Explorer | Level 3

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

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

Greg-DB
Dropboxer

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

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

Moravia t.
Explorer | Level 3

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.

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

Moravia t.
Explorer | Level 3

Is there any progress?

 

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

Greg-DB
Dropboxer

Sorry, no update on this right now.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Moravia t. Explorer | Level 3
What do Dropbox user levels mean?
Need more support?