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

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


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

    @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

        return "session";
    }

    @Override
    protected Session createDomainObject() {
        return new Session("Title", "Outline", new Duration(new Date(), new Date()));
    }
View Full Code Here

public class DurationValidationTestCase {

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullConstructorStart() throws Exception {
        new Duration(null, new Date());
    }
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.