You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're having a NullPointerException when executing the commander using our Web API RESO script file.
java.lang.AssertionError: ERROR: java.lang.NullPointerException
at org.junit.Assert.fail(Assert.java:89)
at org.reso.certification.stepdefs.WebAPIServerCore.lambda$new$19(WebAPIServerCore.java:445)
at ?.Decimal data in "Parameter_DecimalField" "ne" "Parameter_DecimalValueLow"(file:///D:/a/r1/a/web-api-commander/src/main/java/org/reso/certification/features/web-api/web-api-server.core.feature:222)
The commander validates that the Web API supports filtering using decimal values using the following requests.
<RequestRequestId="filter-decimal-eq"OutputFile="filter-decimal-eq.json"Url="*ClientSettings_WebAPIURI*/*Parameter_EndpointResource*?$top=*Parameter_TopCount*&$select=*Parameter_KeyField*,*Parameter_DecimalField*&$filter=*Parameter_DecimalField* eq *Parameter_DecimalValueLow*"
/>
...
<RequestRequestId="filter-decimal-le"OutputFile="filter-decimal-le.json"Url="*ClientSettings_WebAPIURI*/*Parameter_EndpointResource*?$top=*Parameter_TopCount*&$select=*Parameter_KeyField*,*Parameter_DecimalField*&$filter=*Parameter_DecimalField* le *Parameter_DecimalValueHigh*"
/>
This is working fine except when one or multiple decimal values returned are null which is a valid result based on the given filter. In our case, there are no required decimal fields.
We can play around with the configurable sample values but in any case there could be null values returned in one of the eq or ne tests. This is not a problem for the gt, lt as null is filtered out.
We're having a
NullPointerException
when executing the commander using our Web API RESO script file.The commander validates that the Web API supports filtering using decimal values using the following requests.
This is working fine except when one or multiple decimal values returned are
null
which is a valid result based on the given filter. In our case, there are no required decimal fields.We can play around with the configurable sample values but in any case there could be null values returned in one of the
eq
orne
tests. This is not a problem for thegt
,lt
as null is filtered out.The text was updated successfully, but these errors were encountered: