Skip to content

Make classes extensible. #160

@rafalwrzeszcz

Description

@rafalwrzeszcz

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions