@Test(expected = IllegalArgumentException.class) public void shouldNotAllowNullSetterTagLine() throws Exception { Conference conf = new Conference("", "", new Duration(new Date(), new Date())); conf.setTagLine(null); }
@Override public Conference update(UriInfo uriInfo, ConferenceRepresentation representation, Conference target) { target.setName(representation.getName()); target.setTagLine(representation.getTagLine()); target.setDuration(new Duration(representation.getStart(), representation.getEnd())); return target; } }