Test-Nesto Java
Test-Nesto Java
ResponseEntity<Exchange> quote2 =
template.getForEntity(resourceUrl+defaultCurrency, Exchange.class);
if (quote2 != null && quote2.hasBody()) {
if (quote2.getBody() != null && quote2.getBody().getCurrencyRates() !=
null && !quote2.getBody().getCurrencyRates().isEmpty()) {
var currencies = quote2.getBody().getCurrencyRates().keySet();
log.warn("Currencies fetched are: " + currencies.toString());
log.warn(quote2.getBody().toString());
}
}
return quote2.getBody();