Package com.coherentlogic.wb.client.core.domain

Examples of com.coherentlogic.wb.client.core.domain.Indicator


        return results;
    }

    static Indicator createIndicator () {

        Indicator result = new Indicator ();

        result.setId(DataPointCountryDAOTest.ID);

        result.setIndicatorTopics(createIndicatorTopics());
        result.setName(NAME);

        Source source = IdValuePairTestHelper.create(Source.class);

        result.setSource(source);
        result.setSourceNote(SOURCE_NOTE);
        result.setSourceOrganization(SOURCE_ORGANISATION);

        return result;
    }
View Full Code Here


        Long primaryKey = indicator.getPrimaryKey();

        assertNotNull(primaryKey);

        Indicator indicator2 =
            indicatorDAO.find(primaryKey);

        assertNotNull(indicator2);
        assertEquals(indicator, indicator2);

        indicator2.setName(NAME1);

        indicatorDAO.merge(indicator2);

        Indicator indicator3 =
            indicatorDAO.find(primaryKey);

        assertEquals(NAME1, indicator3.getName ());

        indicatorDAO.remove(indicator3);

        Indicator indicator4 =
            indicatorDAO.find(primaryKey);

        assertNull(indicator4);
    }
View Full Code Here

        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();
View Full Code Here

        List<Indicator> indicatorList = result.getIndicatorList();

        assertNotNull (indicatorList);

        Indicator firstIndicator = indicatorList.get(2);

        assertEquals ("EG.GDP.PUSE.KO.PP.KD", firstIndicator.getId());
        assertEquals ("GDP per unit of energy use (constant 2011 PPP $ per " +
            "kg of oil equivalent)", firstIndicator.getName());

        Source source = firstIndicator.getSource();

        reviewIdValuePair(
            "2",
            "World Development Indicators",
            source
        );

        String expectedSourceNote = "GDP per unit of energy use is the PPP " +
            "GDP per kilogram of oil equivalent of energy use. PPP GDP is " +
            "gross domestic product converted to 2011 constant " +
            "international dollars using purchasing power parity rates. An " +
            "international dollar has the same purchasing power over GDP as " +
            "a U.S. dollar has in the United States.";

        assertEquals (expectedSourceNote, firstIndicator.getSourceNote());

        String expectedSourceOrganization = "International Energy Agency " +
            "(IEA Statistics © OECD/IEA, " +
            "http://www.iea.org/stats/index.asp), and World Bank PPP data.";

        assertEquals (expectedSourceOrganization,
            firstIndicator.getSourceOrganization());

        IndicatorTopics indicatorTopics =
            firstIndicator.getIndicatorTopics();

        assertNotNull (indicatorTopics);

        List<IndicatorTopic> indicatorTopicList =
            indicatorTopics.getIndicatorTopicList();
View Full Code Here

TOP

Related Classes of com.coherentlogic.wb.client.core.domain.Indicator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.