Search in sources :

Example 1 with VenueHall

use of site.model.VenueHall in project jprime by bgjug.

the class SessionControllerTest method setup.

@Before
public void setup() throws Exception {
    mockMvc = MockMvcBuilders.webAppContextSetup(wac).build();
    this.forgeSubmission = submissionRepository.save(new Submission("Forge with me", "Forge is the best", SessionLevel.BEGINNER, SessionType.ConferenceSession, new Speaker("Ivan St.", "Ivanov", "ivan.st.ivanov@example.com", "The Forge Guy", "@forge", false, true)));
    forgeSubmission.setStatus(SubmissionStatus.ACCEPTED);
    Submission bootSubmission = submissionRepository.save(new Submission("Spring Boot", "Bootiful or what?", SessionLevel.BEGINNER, SessionType.ConferenceSession, new Speaker("Nayden", "Gochev", "nayden.gochev@example.com", "The Spring Guy", "@sprink", true, true)));
    bootSubmission.setStatus(SubmissionStatus.ACCEPTED);
    this.betaHall = venueHallRepository.save(new VenueHall("Beta", "600 seats"));
    venueHallRepository.save(new VenueHall("Alpha", "400 seats"));
    this.bootSession = sessionRepository.save(new Session(bootSubmission, DateTime.now(), DateTime.now(), betaHall));
}
Also used : VenueHall(site.model.VenueHall) Submission(site.model.Submission) Speaker(site.model.Speaker) Session(site.model.Session) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Session (site.model.Session)1 Speaker (site.model.Speaker)1 Submission (site.model.Submission)1 VenueHall (site.model.VenueHall)1