/** Test getLocationByFolder. */ @Test public void testGetLocationByFolder() { final GeoPointFolder geoPointFolder = createGeoPointFolder(GeoPointFolderType.GROUPING, this.userPrimary, "Matagalpa", null); createGeoPoint("Location 1", "type", 1, this.userPrimary, geoPointFolder); final List<GeoPoint> geoPoint = getGeoPointDao() .getLocationByFolder(geoPointFolder.getLocationFolderId(), this.userPrimary.getUid()); assertEquals("Should be equals", 1, geoPoint.size()); }
/** Test for getLocationFoldersByLocationFolderId. */ @Ignore @Test public void testGetLocationFoldersByLocationFolderId() { final GeoPointFolder geoPointFolder = createGeoPointFolder(GeoPointFolderType.GROUPING, this.userPrimary, "Condega2", null); createGeoPointFolder(GeoPointFolderType.GROUPING, this.userPrimary, "Wiwili2", geoPointFolder); final List<GeoPointFolder> geoPointFolders = getGeoPointDao() .getLocationFoldersByLocationFolderId( geoPointFolder.getLocationFolderId(), this.userPrimary.getUid()); assertEquals("Should be equals", 1, geoPointFolders.size()); }
/** Test getLocationFolderByIdAndUserId. */ @Test public void testGetLocationFolderByIdAndUserId() { final GeoPointFolder geoPointFolder = createGeoPointFolder(GeoPointFolderType.GROUPING, this.userPrimary, "Carazo", null); final GeoPointFolder geoPointFolder2 = getGeoPointDao() .getLocationFolderByIdAndUserId( geoPointFolder.getLocationFolderId(), this.userPrimary.getUid()); assertEquals( "Should be equals", geoPointFolder.getLocationFolderId(), geoPointFolder2.getLocationFolderId()); }