Jean-Francois Leveque

Distinction argument capturé d'attribut de classe de même nom

......@@ -307,8 +307,8 @@ public class PublisherVersionViewTest {
@Test
public void shouldAddNewVersion(@Mock PublisherService publisherService) {
Mockito.verify(publisherService).addVersionToPublisher(publisherArgumentCaptor.capture(), publisherVersionArgumentCaptor.capture());
PublisherVersion publisherVersion = publisherVersionArgumentCaptor.getValue();
assertThat(publisherVersion.getPublisherName()).isEqualTo("1");
PublisherVersion capturedPublisherVersion = publisherVersionArgumentCaptor.getValue();
assertThat(capturedPublisherVersion.getPublisherName()).isEqualTo("1");
}
@DisplayName("should put state in non edit mode")
......@@ -375,8 +375,8 @@ public class PublisherVersionViewTest {
@Test
public void shouldSave(@Mock PublisherService publisherService) {
Mockito.verify(publisherService).addNewPublisher(publisherVersionArgumentCaptor.capture());
PublisherVersion publisherVersion = publisherVersionArgumentCaptor.getValue();
assertThat(publisherVersion.getPublisherName()).isEqualTo("A");
PublisherVersion capturedPublisherVersion = publisherVersionArgumentCaptor.getValue();
assertThat(capturedPublisherVersion.getPublisherName()).isEqualTo("A");
}
......