public void testAlterarDailyMeetingInvalido() throws Exception {
try {
Timestamp dataRealizacao = new Timestamp(System.currentTimeMillis());
List<Usuario> participantes = Arrays.asList(criarUsuario(), criarUsuario());
DailyMeeting dailyMeeting = new DailyMeeting(null, criarProjeto(), "Teste de Reuni�o.", dataRealizacao, participantes);
dailyMeetingService.inserir(dailyMeeting);
assertNotNull(dailyMeeting.getId());
dailyMeeting.setProjeto(new Projeto());
dailyMeeting.setDataRealizacao(null);
dailyMeeting.setResumo("");
dailyMeetingService.alterar(dailyMeeting);
DailyMeeting dailyMeetingAlterada = dailyMeetingService.recuperar(dailyMeeting.getId());
assertEquals("Implementar a c�mada de interface de usu�rio!", dailyMeetingAlterada.getResumo());
} catch (ValidationException e) {
throwValidations(e);
}
}