array.add(new Event("id", "title", "summary", "category", new DateTime(0), new DateTime(0), "url", "place", "address", "description", "hashTag", "ownerId", "foreImageId", "backImageId", "passcode", false, new ArrayList<String>(), new ArrayList<String>(), null, new DateTime(0), new DateTime(0), 1));
return array;
}
public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
IEventAccess dao = daos.getEventAccess();
dao.truncate(con);
DateTime now = TimeUtil.getCurrentDateTime();
DateTime late = now.nDayAfter(1);
String category = EventCategory.getCategories().get(0).getKey();
dao.put(con, new Event(DEFAULT_EVENT_ID, "title", "summary", category,
late, late, "http://www.example.com/", "place",
"address", "description", "#hashTag", EVENT_OWNER_ID,
EVENT_FOREIMAGE_ID, EVENT_BACKIMAGE_ID, null, false,
Collections.singletonList(EVENT_EDITOR_ID), new ArrayList<String>(), null,
now, now, -1));
dao.put(con, new Event(PRIVATE_EVENT_ID, "title", "summary", category,
late, late, "http://www.example.com/", "place",
"address", "description", "#hashTag", EVENT_OWNER_ID,
EVENT_FOREIMAGE_ID, EVENT_BACKIMAGE_ID, "passcode", false,
Collections.singletonList(EVENT_EDITOR_ID), new ArrayList<String>(), null,
now, now, -1));
dao.put(con, new Event(JAPANESE_EVENT_ID, "title", "summary", category,
late, late, "http://www.example.com/", "place",
"address", "unique identifier -- " + JAPANESE_IDENTIFIER, "#hashTag", EVENT_OWNER_ID,
EVENT_FOREIMAGE_ID, EVENT_BACKIMAGE_ID, null, false,
Collections.singletonList(EVENT_EDITOR_ID), new ArrayList<String>(), null,
now, now, -1));
dao.put(con, new Event(UNIQUEIDENTIFIER_EVENT_ID, "title", "summary", category,
late, late, "http://www.example.com/", "place",
"address", "unique identifier -- " + UNIQUE_IDENTIFIER, "#hashTag", EVENT_OWNER_ID,
EVENT_FOREIMAGE_ID, EVENT_BACKIMAGE_ID, null, false,
Collections.singletonList(EVENT_EDITOR_ID), new ArrayList<String>(), null,
now, now, -1));
dao.put(con, new Event(UNPUBLISHED_EVENT_ID, "title", "summary", category,
late, late, "http://www.example.com/", "place",
"address", "description", "#hashTag", EVENT_OWNER_ID,
EVENT_FOREIMAGE_ID, EVENT_BACKIMAGE_ID, null, true,
Collections.singletonList(EVENT_EDITOR_ID), new ArrayList<String>(), null,
now, now, -1));
dao.put(con, new Event(PUBLISHED_EVENT_ID, "title", "summary", category,
late, late, "http://www.example.com/", "place",
"address", "description", "#hashTag", EVENT_OWNER_ID,
EVENT_FOREIMAGE_ID, EVENT_BACKIMAGE_ID, null, false,
Collections.singletonList(EVENT_EDITOR_ID), new ArrayList<String>(), null,
now, now, -1));
dao.put(con, new Event(NO_PARTICIPANTS_EVENT_ID, "title", "summary", category,
late, late, "http://www.example.com/", "place",
"address", "description", "#hashTag", EVENT_OWNER_ID,
EVENT_FOREIMAGE_ID, EVENT_BACKIMAGE_ID, null, true,
Collections.singletonList(EVENT_EDITOR_ID), new ArrayList<String>(), null,
now, now, -1));