Examples of Conference


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

        conf.addSession(null);
    }

    @Test(expected = UnsupportedOperationException.class)
    public void shouldNotAllowToAddSessionToSessions() throws Exception {
        Conference conf = new Conference("", "", new Duration(new Date(), new Date()));
        Session sess = new Session("", "", new Duration(new Date(), new Date()));
        conf.getSessions().add(sess);
    }
View Full Code Here

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

    @Test
    @ShouldMatchDataSet(value = { "conference.yml" }, excludeColumns = { "*id" })
    public void shouldBeAbleToCreateConference() {

        Conference conference = createConference();

        repository.store(conference);
        Assert.assertTrue(createdEventFired);
    }
View Full Code Here

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

    @Test
    @ShouldMatchDataSet(value = { "conference.yml", "session.yml" }, excludeColumns = { "*id" })
    public void shouldBeAbleToCreateConferenceWithSession() {

        Conference conference = createConference();
        conference.addSession(createSession());

        repository.store(conference);
    }
View Full Code Here

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

    @Test
    @UsingDataSet("conference.yml")
    @ShouldMatchDataSet(value = { "conference.yml", "session.yml" }, excludeColumns = { "*id" })
    public void shouldBeAbleToAddSessionToConference() {

        Conference conference = repository.get("CA");
        conference.addSession(createSession());

        repository.store(conference);
    }
View Full Code Here

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

    @Test
    @UsingDataSet("conference.yml")
    @ShouldMatchDataSet("conference_empty.yml")
    public void shouldBeAbleToRemoveConference() {

        Conference conference = repository.get("CA");

        repository.remove(conference);
        Assert.assertTrue(removedEventFired);
    }
View Full Code Here

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

    @Test
    @UsingDataSet({ "conference.yml", "session.yml" })
    @ShouldMatchDataSet({ "conference.yml", "session_empty.yml" })
    public void shouldBeAbleToRemoveConferenceWithSession() {

        Conference conference = repository.get("CA");
        Session session = conference.getSessions().toArray(new Session[0])[0];
        conference.removeSession(session);

        repository.store(conference);
    }
View Full Code Here

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

    @Test
    @UsingDataSet("conference.yml")
    @ShouldMatchDataSet(value = { "conference_updated.yml" })
    public void shouldBeAbleToChangeConference() {

        Conference conference = repository.get("CA");
        conference.setName("UPDATED");

        repository.store(conference);
    }
View Full Code Here

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

    @Test
    @UsingDataSet({ "conference.yml", "session.yml" })
    @ShouldMatchDataSet(value = { "conference.yml", "session_updated.yml" })
    public void shouldBeAbleToChangeSession() {

        Conference conference = repository.get("CA");
        conference.getSessions().toArray(new Session[0])[0].setTitle("UPDATED");

        repository.store(conference);
    }
View Full Code Here

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

        return session;
    }

    @Override
    public void remove(Session entity) {
        Conference conf = conferenceRepository.getConferenceBySessionId(entity.getId());
        if(conf != null) {
            conf.removeSession(entity);
        }
        sessions.remove(entity);
    }
View Full Code Here

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

        return "conference";
    }

    @Override
    protected Conference createDomainObject() {
        return new Conference("Name", "TagLine", new Duration(new Date(), new Date()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.