use of org.molgenis.semanticmapper.mapping.model.MappingProject in project molgenis by molgenis.
the class MappingServiceImplTest method testCloneMappingProjectStringString.
@Test
public void testCloneMappingProjectStringString() {
MappingProject mappingProject = Mockito.mock(MappingProject.class);
when(mappingProjectRepo.getMappingProject("0")).thenReturn(mappingProject);
mappingService.cloneMappingProject("0", "newName");
Mockito.verify(mappingProject).removeIdentifiers();
Mockito.verify(mappingProject).setName("newName");
Mockito.verify(mappingProjectRepo).add(mappingProject);
}
Aggregations