Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(archive-search): find units by persistent identifier test
Browse files Browse the repository at this point in the history
Regzox authored and laedanrex committed Jan 30, 2024
1 parent c445c3f commit eacd3af
Showing 15 changed files with 266 additions and 24,130 deletions.
Original file line number Diff line number Diff line change
@@ -165,7 +165,7 @@ public void findUnitsByPersistentIdentifier_ok() throws URISyntaxException {
PersistentIdentifierResponseDto persistentIdentifierResponse = archiveSearchExternalRestClient.findUnitsByPersistentIdentifier(arkId, defaultContext);
// Then
Assertions.assertEquals(persistentIdentifierResponse, result);
verify(restTemplate).exchange(eq(uri), eq(HttpMethod.GET), any(HttpEntity.class), eq(ArrayList.class));
verify(restTemplate).exchange(eq(uri), eq(HttpMethod.GET), any(HttpEntity.class), eq(PersistentIdentifierResponseDto.class));
}

}
Original file line number Diff line number Diff line change
@@ -140,7 +140,7 @@ public void findUnitsByPersistentIdentifier_ok() throws URISyntaxException {
PersistentIdentifierResponseDto persistentIdentifierResponse = archivesSearchExternalRestClient.findUnitsByPersistentIdentifier(arkId, defaultContext);
// Then
Assertions.assertEquals(persistentIdentifierResponse, result);
verify(restTemplate).exchange(eq(uri), eq(HttpMethod.GET), any(HttpEntity.class), eq(ArrayList.class));
verify(restTemplate).exchange(eq(uri), eq(HttpMethod.GET), any(HttpEntity.class), eq(PersistentIdentifierResponseDto.class));
}

}
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@
*/
package fr.gouv.vitamui.commons.vitam.api.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
@@ -44,6 +45,7 @@
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class ManagementDto {

@JsonProperty("AppraisalRule")
@@ -69,4 +71,5 @@ public class ManagementDto {

@JsonProperty("UpdateOperation")
private UpdateOperationDto updateOperationDto;

}
Loading

0 comments on commit eacd3af

Please sign in to comment.