Closed ghost closed 9 years ago
@jschloman or zatarians, WDYT?
This looks good as it completes the definition support and clarifies the code. At some point we should take a look at being more restrictive on the SingleResourceDefinition constructor because, as the changed test shows, it is possible to define a SingleResourceDefinition with a MultipleLwM2mResource (which could be a bit confusing to users of the client).
@jschloman you should be able to merge it if you want if you do please don't create a merge commit, rebase the changes on top of the master (ff only):
Hi, i have added MultipleResourceDefinition in addition to SingleResourceDefinition for the Leshan client just for the feature completeness, the usage can be seen in LeshanClientExample, for instance, powerSource Voltage, Avail.Power Sources etc. Also corrected the mockito dependency version range, because the mockito 1.10.? introduced an API break (package structure changes).