Package org.cedj.geekseek.domain.conference.model

Examples of org.cedj.geekseek.domain.conference.model.Duration


        new Session("", "", null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullSetterTitle() throws Exception {
        Session sess = new Session("", "", new Duration(new Date(), new Date()));
        sess.setTitle(null);
    }
View Full Code Here


        sess.setTitle(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullSetterOutline() throws Exception {
        Session sess = new Session("", "", new Duration(new Date(), new Date()));
        sess.setOutline(null);
    }
View Full Code Here

        sess.setOutline(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullSetterDuration() throws Exception {
        Session sess = new Session("", "", new Duration(new Date(), new Date()));
        sess.setDuration(null);
    }
View Full Code Here

    public static Conference createConference() {
        Conference conference = new Conference(
            "Devoxx Belgium 2013",
            "We Code In Peace",
            new Duration(toDate(2013, 11, 11), toDate(2013, 11, 15)));
        return conference;
    }
View Full Code Here

    public static Session createSession() {
        Session session = new Session(
            "Testing the Enterprise layers - The A, B, C’s of integration testing",
            "For years we’ve been exploring how to layer and separate our code to test in isolation on the unit level. We’ve kept integration and functional testing as a big ball of mud; jumping straight from unit to full system testing. But can we apply some of the same lessons learned from unit to integration testing?\\n\\nThis session explore the different technologies within the Java Enterprise specification and see how our application can be tested in isolation; layer for layer, module for module and component for component.\\n\\nCan we isolate and stay real at the same time? Does mocks, stubs and test doubles have a place in the world of integration testing? Are there other lessons to be learned?",
            new Duration(toDate(2013, 11, 11, 15, 00), toDate(2013, 11, 11, 16, 00)));
        return session;
    }
View Full Code Here

    @Override
    public Conference to(UriInfo uriInfo, ConferenceRepresentation representation) {
        Conference conf = new Conference(
            representation.getName(),
            representation.getTagLine(),
            new Duration(representation.getStart(), representation.getEnd()));
        return conf;
    }
View Full Code Here

    @Override
    public Conference update(UriInfo uriInfo, ConferenceRepresentation representation, Conference target) {
        target.setName(representation.getName());
        target.setTagLine(representation.getTagLine());
        target.setDuration(new Duration(representation.getStart(), representation.getEnd()));
        return target;
    }
View Full Code Here

    @Override
    public Session to(UriInfo uriInfo, SessionRepresentation representation) {
        Session session = new Session(
            representation.getTitle(),
            representation.getOutline(),
            new Duration(representation.getStart(), representation.getEnd()));
        return session;
    }
View Full Code Here

    @Override
    public Session update(UriInfo uriInfo, SessionRepresentation representation, Session target) {
        target.setTitle(representation.getTitle());
        target.setOutline(representation.getOutline());
        target.setDuration(new Duration(representation.getStart(), representation.getEnd()));
        return target;
    }
View Full Code Here

TOP

Related Classes of org.cedj.geekseek.domain.conference.model.Duration

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.