Closed chris-allan closed 2 years ago
Looking at the gateway classes, PIXELS
and REFERENCEFRAME
are used in the Pojos when value is null
.
I have not seen any error reported when consuming the Pojos in insight for example
@dominikl have you?
Me neither, I think it's fine 👍
Merging, before doing another release following the release of BF 6.9.1
This PR follows on from #76 based on the investigation from glencoesoftware/omero-ms-image-region#99 ensuring that conversions from PIXELS or REFERENCEFRAME throw the correct exceptions just like conversions to those units. Since these two units are the only examples across the seven (ElectricalPotential, Frequency, Length, Power, Pressure, Temperature, Time) originally modified I made the decision just to set up empty conversion maps rather than modify all the implementations.
The unit tests for the unit infrastructure have also been reactivated as part of this PR.
@dominikl, @jburel: You will definitely want to make sure this does not break things vs. what the Java gateway is doing.