Okta Java SDK and test isolation

We are using the Okta Java SDK. Is there any guidance out there on how to get the different objects isolated in Unit Tests?

To be able to test the different methods of our service implementations (Spring) we would have to create or mock a client object and must be able to, e.g. create a user object or a list of UserList. The User Builder needs a client object. So it is not possible to directly create a user object.

Would it be possible to get some guidance?

Thanks!

1 Like