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

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


    @Test
    public void findCountry () {

        List<Country> countryList = countries.getCountryList();

        Country country = countryList.get(2);

        reviewCountry (country);

        Long id = country.getPrimaryKey();

        assertNotNull (id);

        Country persistedCountry = countryDAO.find(id);

        assertNotNull (persistedCountry);
    }
View Full Code Here


        List<Country> countryList = parent.getCountryList();

        assertNotNull (countryList);
        assertEquals (10, countryList.size ());

        Country firstCountry = countryList.get(0);

        assertNull (firstCountry.getPrimaryKey());

        return parent;
    }
View Full Code Here

        reviewPaginationProperties (1, 4, 10, 36, result);

        List<Country> countryList = result.getCountryList();

        Country expected = new Country ();
        expected.setId("BEN");
        expected.setIsoCode("BJ");
        expected.setName("Benin");

        Region region = new Region ();
        region.setId("SSF");
        region.setValue("Sub-Saharan Africa (all income levels)");

        AdminRegion adminRegion = new AdminRegion();
        adminRegion.setId("SSA");
        adminRegion.setValue("Sub-Saharan Africa (developing only)");

        IncomeLevel incomeLevel = new IncomeLevel ();
        incomeLevel.setId("LIC");
        incomeLevel.setValue("Low income");

        LendingType lendingType = new LendingType();
        lendingType.setId ("IDX");
        lendingType.setValue("IDA");

        expected.setRegion(region);
        expected.setAdminRegion(adminRegion);
        expected.setIncomeLevel(incomeLevel);
        expected.setLendingType(lendingType);
        expected.setCapitalCity("Porto-Novo");
        expected.setLatitude("6.4779");
        expected.setLongitude("2.6323");

        Country actual = countryList.get(2);

        reviewCountry(expected, actual);
    }
View Full Code Here

        reviewPaginationProperties (1, 4, 10, 36, result);

        List<Country> countryList = result.getCountryList();

        Country expected = new Country ();
        expected.setId("BEN");
        expected.setIsoCode("BJ");
        expected.setName("Benin");

        Region region = new Region ();
        region.setId("SSF");
        region.setValue("Sub-Saharan Africa (all income levels)");

        AdminRegion adminRegion = new AdminRegion();
        adminRegion.setId("SSA");
        adminRegion.setValue("Sub-Saharan Africa (developing only)");

        IncomeLevel incomeLevel = new IncomeLevel ();
        incomeLevel.setId("LIC");
        incomeLevel.setValue("Low income");

        LendingType lendingType = new LendingType();
        lendingType.setId ("IDX");
        lendingType.setValue("IDA");

        expected.setRegion(region);
        expected.setAdminRegion(adminRegion);
        expected.setIncomeLevel(incomeLevel);
        expected.setLendingType(lendingType);
        expected.setCapitalCity("Porto-Novo");
        expected.setLatitude("6.4779");
        expected.setLongitude("2.6323");

        Country actual = countryList.get(2);

        reviewCountry(expected, actual);
    }
View Full Code Here

        List<Country> countryList = result.getCountryList();

        assertEquals(size, countryList.size());

        Country expectedCountry = new Country ();

        expectedCountry.setId("AND");
        expectedCountry.setIsoCode("AD");
        expectedCountry.setName("Andorra");

        Region expectedRegion = new Region();
        expectedRegion.setId("ECS");
        expectedRegion.setValue("Europe & Central Asia (all income levels)");

        expectedCountry.setRegion(expectedRegion);

        AdminRegion adminRegion = new AdminRegion();
        adminRegion.setId("");
        adminRegion.setValue("");

        expectedCountry.setAdminRegion(adminRegion);

        IncomeLevel incomeLevel = new IncomeLevel();
        incomeLevel.setId("NOC");
        incomeLevel.setValue("High income: nonOECD");

        expectedCountry.setIncomeLevel(incomeLevel);

        LendingType lendingType = new LendingType ();
        lendingType.setId("LNX");
        lendingType.setValue("Not classified");

        expectedCountry.setLendingType(lendingType);

        expectedCountry.setCapitalCity("Andorra la Vella");

        expectedCountry.setLongitude("1.5218");
        expectedCountry.setLatitude("42.5075");

        Country actualCountry = countryList.get(1);

        reviewCountry (expectedCountry, actualCountry);
    }
View Full Code Here

        reviewPaginationProperties(1, 1, 50, 2, countries);

        List<Country> countryList = countries.getCountryList();

        Country actual = countryList.get(1);

        Country expected = new Country ();
        expected.setId("GBR");
        expected.setIsoCode("GB");
        expected.setName("United Kingdom");

        Region region = new Region ();
        region.setId("ECS");
        region.setValue("Europe & Central Asia (all income levels)");

        expected.setRegion(region);

        AdminRegion adminRegion = new AdminRegion();
        adminRegion.setId("");
        adminRegion.setValue("");

        expected.setAdminRegion(adminRegion);

        IncomeLevel incomeLevel = new IncomeLevel ();

        incomeLevel.setId("OEC");
        incomeLevel.setValue("High income: OECD");

        expected.setIncomeLevel(incomeLevel);

        LendingType lendingType = new LendingType ();

        lendingType.setId("LNX");
        lendingType.setValue("Not classified");

        expected.setLendingType(lendingType);

        expected.setCapitalCity("London");

        expected.setLongitude("-0.126236");
        expected.setLatitude("51.5002");

        reviewCountry(expected, actual);
    }
View Full Code Here

TOP

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

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.