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

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


public class ConferenceValidationTestCase extends TimestampableSpecification<Conference> {

    @Override
    protected Conference createInstance() {
        return new Conference("", "", new Duration(new Date(), new Date()));
    }
View Full Code Here


        m.invoke(entity);
    }

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

        new Conference(null, "", new Duration(new Date(), new Date()));
    }

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

        new Conference("", null, new Duration(new Date(), new Date()));
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullConstructorDuration() throws Exception {
        new Conference("", "", null);
    }
View Full Code Here

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

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullSetterName() throws Exception {
        Conference conf = new Conference("", "", new Duration(new Date(), new Date()));
        conf.setName(null);
    }
View Full Code Here

        conf.setName(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullSetterTagLine() throws Exception {
        Conference conf = new Conference("", "", new Duration(new Date(), new Date()));
        conf.setTagLine(null);
    }
View Full Code Here

        conf.setTagLine(null);
    }

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

        conf.setDuration(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowToAddNullSession() throws Exception {
        Conference conf = new Conference("", "", new Duration(new Date(), new Date()));
        conf.addSession(null);
    }
View Full Code Here

        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

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

        Conference conference = createConference();

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

TOP

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

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.