Package org.encuestame.persistence.domain

Examples of org.encuestame.persistence.domain.GeoPoint


    /**
     * Test Catalog Location.
     */
    @Test
    public void testGeoPoint(){
        final GeoPoint catLoc = new GeoPoint();
        catLoc.setLocationStatus(Status.ACTIVE);
        catLoc.setLocationDescription("Managua");
        catLoc.setLocationLatitude(2F);
        catLoc.setLocationLongitude(3F);
        catLoc.setTidtype(createGeoPointType("aldea"));
        catLoc.getProjects().add(createProject("encuestame", "survey", "open source", createAccount()));
        getGeoPointDao().saveOrUpdate(catLoc);
        assertNotNull(catLoc.getLocateId());
    }
View Full Code Here


    /**
     * Test Catalag Location.
     */
    @Test
    public void testGeoPoint(){
        final GeoPoint catLoc = new GeoPoint();
        catLoc.setLocationStatus(Status.ACTIVE);
        catLoc.setLocationDescription("Managua");
        catLoc.setLocationLatitude(2F);
        catLoc.setLocationLongitude(3F);
        catLoc.setTidtype(createGeoPointType("aldea"));
        catLoc.getProjects().add(createProject("encuestame", "survey", "open source",  createAccount()));
        getGeoPointDao().saveOrUpdate(catLoc);
        assertNotNull(catLoc.getLocateId());
    }
View Full Code Here

    /**
     * Test Add Locations to Project.
     */
    public void testGetProjectByLocationId(){
        final GeoPoint loc1 = createGeoPoint("managua", "mga", 1, this.user.getAccount());
        final GeoPoint loc2 = createGeoPoint("diriomo", "drm", 1, this.user.getAccount());
        project.getLocations().add(loc1);
        project.getLocations().add(loc2);
        getProjectDaoImp().saveOrUpdate(project);
        assertEquals("Should be equals", 2, project.getLocations().size());
    }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.domain.GeoPoint

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.