Package in.partake.model.dto

Examples of in.partake.model.dto.Event


        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));
View Full Code Here


        addFormParameter(proxy, "title", "modified");

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getTitle(), is("modified"));
    }
View Full Code Here

        addFormParameter(proxy, "summary", "modified");

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getSummary(), is("modified"));
    }
View Full Code Here

        addFormParameter(proxy, "summary", "");

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getSummary(), is(""));
    }
View Full Code Here

        addFormParameter(proxy, "category", "others");

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getCategory(), is("others"));
    }
View Full Code Here

        addFormParameter(proxy, "beginDate", "2012-08-01 00:00");

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getBeginDate(), is(TimeUtil.create(2012, 8, 1, 0, 0, 0)));
    }
View Full Code Here

        addFormParameter(proxy, "beginDate", String.valueOf(dt.getTime()));

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getBeginDate(), is(dt));
    }
View Full Code Here

        addFormParameter(proxy, "eventId", DEFAULT_EVENT_ID);
        addFormParameter(proxy, "endDate", newEndDate.toHumanReadableFormat());
        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getEndDate(), is(newEndDate));
    }
View Full Code Here

        addFormParameter(proxy, "endDate", String.valueOf(tomorrow.getTime()));

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getEndDate(), is(tomorrow));
    }
View Full Code Here

        addFormParameter(proxy, "endDate", "");

        proxy.execute();
        assertResultOK(proxy);

        Event modified = loadEvent(DEFAULT_EVENT_ID);
        assertThat(modified.getEndDate(), is(nullValue()));
    }
View Full Code Here

TOP

Related Classes of in.partake.model.dto.Event

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.