Examples of UnitLocationFolder


Examples of org.encuestame.utils.web.UnitLocationFolder

    /**
     * Test {@link UnitLocationFolder}.
     */
    @Test
    public void testUnitLocationFormatBean(){
        final UnitLocationFolder locationFolder = new UnitLocationFolder();
        locationFolder.setId(1L);
        locationFolder.setName("folder");
        locationFolder.setType("type");
        locationFolder.setUnitUserBean(new UserAccountBean());
        assertNotNull(locationFolder.getId());
        assertNotNull(locationFolder.getName());
        assertNotNull(locationFolder.getUnitUserBean());
        assertNotNull(locationFolder.getType());
    }
View Full Code Here

Examples of org.encuestame.utils.web.UnitLocationFolder

     * @throws EnMeNoResultsFoundException
     *
     */
    //@Test
    public void testretrieveLocationFolderByUser() throws EnMeNoResultsFoundException{
         final UnitLocationFolder folder1 = createUnitLocationFolder("folder 1");
         this.locationService.createGeoPointFolder(folder1);
         final UnitLocationFolder folder2 = createUnitLocationFolder("folder2 ");
         this.locationService.createGeoPointFolder(folder2);
         final List<UnitLocationFolder> list = this.locationService.retrieveLocationFolderByUser(getSpringSecurityLoggedUserAccount().getUsername());
         Assert.assertEquals(list.size(), 2);
    }
View Full Code Here

Examples of org.encuestame.utils.web.UnitLocationFolder

     * Test createLocationFolder.
     * @throws EnMeExpcetion
     */
    //@Test
    public void testcreateLocationFolder() throws EnMeExpcetion{
        final UnitLocationFolder folder = createUnitLocationFolder("folder");
        this.locationService.createGeoPointFolder(folder);
        Assert.assertNotNull(folder.getId());
    }
View Full Code Here

Examples of org.encuestame.utils.web.UnitLocationFolder

     *            {@link GeoPointFolder}.
     * @return {@link UnitLocationFolder}.
     */
    public static UnitLocationFolder convertGeoPointFolderDomainToBean(
            final GeoPointFolder geoPointFolder) {
        final UnitLocationFolder locationFolder = new UnitLocationFolder();
        locationFolder.setId(geoPointFolder.getLocationFolderId());
        locationFolder.setName(geoPointFolder.getFolderName());
        locationFolder.setType(geoPointFolder.getFolderType().GROUPING.name());
        return locationFolder;
    }
View Full Code Here

Examples of org.encuestame.utils.web.UnitLocationFolder

      * Create Unit Location Folder.
      * @param name
      * @return
      */
     public UnitLocationFolder createUnitLocationFolder(final String name){
         final UnitLocationFolder folder = new UnitLocationFolder();
         folder.setName(name);
         folder.setType(GeoPointFolderType.GROUPING.name());
         return folder;
     }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.