-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Labels
Description
Entire SDK is completely locked (full of package-private members). Would be good I think, to expose some of the properties either via protected properties, so that it can be extended, or make sure to provide accessors, so that it can be mocked.
I'm talking mainly about testing purposes.
One example is CDAClient.service property. Accessed directly withing package. So mocking client itself is pointless as all of the logic accesses directly the service (not via getter, which could be mocked).
Another example are model classes (CDAEntry, CDAResource etc.) which only rely on artifical accesses through de-serialization. I think they should provide at least constructors allowing for passing initial values.