@Test public void testConference() throws Exception { Conference conference = new Conference(ID, ORGANIZER_USER_ID, conferenceForm); assertEquals(ID, conference.getId()); assertEquals(NAME, conference.getName()); assertEquals(DESCRIPTION, conference.getDescription()); assertEquals(ORGANIZER_USER_ID, conference.getOrganizerUserId()); assertEquals(topics, conference.getTopics()); assertEquals(startDate, conference.getStartDate()); assertEquals(endDate, conference.getEndDate()); assertEquals(MONTH, conference.getMonth()); assertEquals(CAP, conference.getMaxAttendees()); assertEquals(CAP, conference.getSeatsAvailable()); assertNotSame(topics, conference.getTopics()); assertNotSame(startDate, conference.getStartDate()); assertNotSame(endDate, conference.getEndDate()); }
private Conference() {}
Conference { private Conference() {} }
Conference { private Conference() {} private  Conference();  Conference(final long id, final String organizerUserId,
                      final ConferenceForm conferenceForm); }
Conference { private Conference() {} private  Conference();  Conference(final long id, final String organizerUserId,
                      final ConferenceForm conferenceForm); long getId(); String getName(); String getDescription(); @ApiResourceProperty(ignored = AnnotationBoolean.TRUE) Key<Profile> getProfileKey(); String getWebsafeKey(); @ApiResourceProperty(ignored = AnnotationBoolean.TRUE) String getOrganizerUserId(); String getOrganizerDisplayName(); List<String> getTopics(); String getCity(); Date getStartDate(); Date getEndDate(); int getMonth(); int getMaxAttendees(); int getSeatsAvailable(); void updateWithConferenceForm(ConferenceForm conferenceForm); void bookSeats(final int number); void giveBackSeats(final int number); @Override String toString(); }
Conference { private Conference() {} private  Conference();  Conference(final long id, final String organizerUserId,
                      final ConferenceForm conferenceForm); long getId(); String getName(); String getDescription(); @ApiResourceProperty(ignored = AnnotationBoolean.TRUE) Key<Profile> getProfileKey(); String getWebsafeKey(); @ApiResourceProperty(ignored = AnnotationBoolean.TRUE) String getOrganizerUserId(); String getOrganizerDisplayName(); List<String> getTopics(); String getCity(); Date getStartDate(); Date getEndDate(); int getMonth(); int getMaxAttendees(); int getSeatsAvailable(); void updateWithConferenceForm(ConferenceForm conferenceForm); void bookSeats(final int number); void giveBackSeats(final int number); @Override String toString();  }