@DatabaseSetup(value = DATASET_SERVICE_ADMIN_DOCUMENT_X1)
@DatabaseTearDown(value = DATASET_SERVICE_ADMIN_DOCUMENT_X1_UPDATEDOWNER, type = DatabaseOperation.DELETE)
public void testUpdateOwnerViaUpdate() throws Exception {
List<DocumentDTO> documents = documentService.findAllByName("document 1");
DocumentDTO document;
ProfileDTO profile = new ProfileDTO();
UzerDTO uzer = new UzerDTO();
profile.setId(1L);
uzer.setId(1L);
assertNotNull(documents);
assertSame(1, documents.size());
document = documents.get(0);
assertNotNull(document);
assertNotNull(documents);
assertSame(1, documents.size());
document = documents.get(0);
assertNotNull(document);
profile.setAdministrator(true);
profile.setLicensesConsultation(true);
profile.setLicensesEdition(true);
profile.setProgramsConsultation(true);
profile.setProgramsEdition(true);
profile.setName("Ahdmin");
uzer.setProfile(profile);
uzer.setEmail("a@a.a");
uzer.setFirstname("ah");
uzer.setName("Ah!");
uzer.setPassword("a");