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

Examples of org.cedj.geekseek.domain.conference.model.Conference.removeSession()


    @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);
    }

    // Story: As a User I should be able to change a Conference
View Full Code Here


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

    @Override
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.