question

jtpdev avatar image
jtpdev asked

How to test/validate Price isRange API?

So I am using the API and when looking at the "Price" class, I noticed the following method: [b]public boolean isRange();[/b] and yes I do understand what it means and that it has the corresponding API for price with [i]getMinValue()[/i] and [i]getMaxValue()[/i]. My question is how can I verify that my code is working correctly with the local [b]amazon.sdktester.product.json[/b] file on my test device? The description for the file at: https://developer.amazon.com/sdk/mobile-associates/testing.html doesn't really show how we can simulate that. Can the documentation / example be update with a JSON that simulate it? Thank
mobile associates
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

jtpdev avatar image
jtpdev answered
Answering my own question after trying a few things, it seems that in the JSON if I use the following key: "minValue": "..." "maxValue": "..." then it's being reflected in the Price object.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.