Package org.cedj.geekseek.web.rest.conference.test.model

Examples of org.cedj.geekseek.web.rest.conference.test.model.SessionType


        return new Session("Title", "Outline", new Duration(new Date(), new Date()));
    }

    @Override
    protected SessionType createUpdateRepresentation() {
        return new SessionType()
            .setTitle("Title 2")
            .setOutline("Outline 2")
            .setStart(new Date())
            .setEnd(new Date());
    }
View Full Code Here


            .setStart(new Date())
            .setEnd(new Date());
    }

    protected SessionType createSessionRepresentation() {
        return new SessionType()
            .setTitle("Title")
            .setOutline("Outline")
            .setStart(new Date())
            .setEnd(new Date());
    }
View Full Code Here

    @Test @InSequence(5)
    public void shouldBeAbleToCreateSession() throws Exception {
        assertNotNull("Previous step failed", uri_session);

        SessionType session = getCreateSession();

        uri_sessionInstance =
              given().
                  contentType(SESSION_MEDIA_TYPE).
                  body(session).
View Full Code Here

    @Test @InSequence(8)
    public void shouldBeAbleToUpdateSession() throws Exception {
        assertNotNull("Previous step failed", uri_sessionInstance);

        // TODO: require merge of models. merge == PATCH. PUT == full replacement
        SessionType session = getUpdateSession();

        given().
           contentType(SESSION_MEDIA_TYPE).
           body(session).
        then().
View Full Code Here

    @Test @InSequence(9)
    public void verifyUpdatedSession() throws Exception {
        assertNotNull("Previous step failed", uri_sessionInstance);

        SessionType session = getUpdateSession();

        given().
        then().
           contentType(SESSION_MEDIA_TYPE).
           statusCode(Status.OK.getStatusCode()).
           root("session").
               body("title", equalTo(session.getTitle())).
               body("outline", equalTo(session.getOutline())).
        when().
           get(uri_sessionInstance);
    }
View Full Code Here

                                .setEnd(new Date());
        return conf;
    }

    private SessionType getCreateSession() {
        SessionType session = new SessionType()
                            .setTitle("Title")
                            .setOutline("Outline")
                            .setStart(new Date())
                            .setEnd(new Date());
        return session;
View Full Code Here

                            .setEnd(new Date());
        return session;
    }

    private SessionType getUpdateSession() {
        SessionType session = new SessionType()
                            .setTitle("Title 2")
                            .setOutline("Outline 2")
                            .setStart(new Date())
                            .setEnd(new Date());
        return session;
View Full Code Here

TOP

Related Classes of org.cedj.geekseek.web.rest.conference.test.model.SessionType

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.