List<Indicator> indicatorList = result.getIndicatorList();
assertNotNull (indicatorList);
Indicator firstIndicator = indicatorList.get(0);
assertEquals ("NY.GDP.MKTP.CD", firstIndicator.getId());
assertEquals ("GDP (current US$)", firstIndicator.getName());
Source source = firstIndicator.getSource();
reviewIdValuePair(
"2",
"World Development Indicators",
source
);
String expectedSourceNote = "GDP at purchaser's prices is the sum " +
"of gross value added by all resident producers in the economy " +
"plus any product taxes and minus any subsidies not included in " +
"the value of the products. It is calculated without making " +
"deductions for depreciation of fabricated assets or for " +
"depletion and degradation of natural resources. Data are in " +
"current U.S. dollars. Dollar figures for GDP are converted from " +
"domestic currencies using single year official exchange rates. " +
"For a few countries where the official exchange rate does not " +
"reflect the rate effectively applied to actual foreign " +
"exchange transactions, an alternative conversion factor is used.";
assertEquals (expectedSourceNote, firstIndicator.getSourceNote());
String expectedSourceOrganization = "World Bank national accounts " +
"data, and OECD National Accounts data files.";
assertEquals (expectedSourceOrganization,
firstIndicator.getSourceOrganization());
IndicatorTopics indicatorTopics =
firstIndicator.getIndicatorTopics();
assertNotNull (indicatorTopics);
List<IndicatorTopic> indicatorTopicList =
indicatorTopics.getIndicatorTopicList();