Jean-Francois Leveque

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

...@@ -307,8 +307,8 @@ public class PublisherVersionViewTest { ...@@ -307,8 +307,8 @@ public class PublisherVersionViewTest {
307 @Test 307 @Test
308 public void shouldAddNewVersion(@Mock PublisherService publisherService) { 308 public void shouldAddNewVersion(@Mock PublisherService publisherService) {
309 Mockito.verify(publisherService).addVersionToPublisher(publisherArgumentCaptor.capture(), publisherVersionArgumentCaptor.capture()); 309 Mockito.verify(publisherService).addVersionToPublisher(publisherArgumentCaptor.capture(), publisherVersionArgumentCaptor.capture());
310 - PublisherVersion publisherVersion = publisherVersionArgumentCaptor.getValue(); 310 + PublisherVersion capturedPublisherVersion = publisherVersionArgumentCaptor.getValue();
311 - assertThat(publisherVersion.getPublisherName()).isEqualTo("1"); 311 + assertThat(capturedPublisherVersion.getPublisherName()).isEqualTo("1");
312 } 312 }
313 313
314 @DisplayName("should put state in non edit mode") 314 @DisplayName("should put state in non edit mode")
...@@ -375,8 +375,8 @@ public class PublisherVersionViewTest { ...@@ -375,8 +375,8 @@ public class PublisherVersionViewTest {
375 @Test 375 @Test
376 public void shouldSave(@Mock PublisherService publisherService) { 376 public void shouldSave(@Mock PublisherService publisherService) {
377 Mockito.verify(publisherService).addNewPublisher(publisherVersionArgumentCaptor.capture()); 377 Mockito.verify(publisherService).addNewPublisher(publisherVersionArgumentCaptor.capture());
378 - PublisherVersion publisherVersion = publisherVersionArgumentCaptor.getValue(); 378 + PublisherVersion capturedPublisherVersion = publisherVersionArgumentCaptor.getValue();
379 - assertThat(publisherVersion.getPublisherName()).isEqualTo("A"); 379 + assertThat(capturedPublisherVersion.getPublisherName()).isEqualTo("A");
380 } 380 }
381 381
382 382
......