Commit 5df41fa3 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov Committed by Matija Obreza

Test PartnerControllerTest.testRemoveInstituteFromPartner

parent fc39e540
......@@ -129,12 +129,11 @@ public abstract class CatalogServiceTest extends AbstractServiceTest {
@Override
public void cleanup() throws Exception {
partnerRepository.deleteAll();
accessionRepository.deleteAll();
instituteRepository.deleteAll();
partner = setupPartner(PARTNER_1, PARTNER_ACRONYM_1, Sets.newHashSet(URL_1));
partner2 = setupPartner(PARTNER_2, PARTNER_ACRONYM_2, Sets.newHashSet(URL_1));
accessionRepository.deleteAll();
instituteRepository.deleteAll();
super.cleanup();
}
......
......@@ -342,7 +342,7 @@ public class PartnerControllerTest extends AbstractApiTest {
String[] instCodesToRemove = { instituteList.get(0).getCode() };
this.mockMvc
.perform(RestDocumentationRequestBuilders.post(PartnerController.CONTROLLER_URL.concat("/removeInstitutes"))
.perform(RestDocumentationRequestBuilders.post(PartnerController.CONTROLLER_URL.concat("/removeInstitutes/{UUID}"), partner.getUuid())
.content(verboseMapper.writeValueAsString(instCodesToRemove))
.contentType(MediaType.APPLICATION_JSON)
.accept(MediaType.APPLICATION_JSON))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment