/**
* Test get surveys by folder.
*/
@Test
public void testGetSurveyFolder() {
final SurveyFolder folder = createSurveyFolders("My Folder",
this.secondaryUser);
final Survey mySurvey = createDefaultSurvey(user, "My Last Survey",
this.myDate.getTime());
mySurvey.setSurveysfolder(folder);
getSurveyDaoImp().saveOrUpdate(mySurvey);
final List<Survey> mySurveysByFolder = getSurveyDaoImp()
.retrieveSurveyByFolder(this.user.getUid(), folder.getId());
assertEquals("Should be equals", 1, mySurveysByFolder.size());
}