Jean-Francois Leveque

Réécriture DisplayName en when/should.

...@@ -57,7 +57,7 @@ public class PublisherServiceSpringTest { ...@@ -57,7 +57,7 @@ public class PublisherServiceSpringTest {
57 this.publisherRepository = publisherRepository; 57 this.publisherRepository = publisherRepository;
58 } 58 }
59 59
60 - @DisplayName("Adds a new publisher by setting it and its first version up and saving both") 60 + @DisplayName("When a new publisher is added, both Publisher and PublisherVersion should be saved in the right state")
61 @Test 61 @Test
62 public void testAddNewPublisher(@Mock PublisherVersionRepository publisherVersionRepository) { 62 public void testAddNewPublisher(@Mock PublisherVersionRepository publisherVersionRepository) {
63 publisherServiceSpring.addNewPublisher(publisherVersion); 63 publisherServiceSpring.addNewPublisher(publisherVersion);
...@@ -68,7 +68,7 @@ public class PublisherServiceSpringTest { ...@@ -68,7 +68,7 @@ public class PublisherServiceSpringTest {
68 verify(publisherVersionRepository).save(publisherVersion); 68 verify(publisherVersionRepository).save(publisherVersion);
69 } 69 }
70 70
71 - @DisplayName("Adds a new version of a publisher, setting it up, attaching it to publisher and saving both") 71 + @DisplayName("When a new version of a publisher is added, setting it up, attaching it to publisher and saving both")
72 @Test 72 @Test
73 public void testAddVersionToPublisher(@Mock PublisherRepository publisherRepository, 73 public void testAddVersionToPublisher(@Mock PublisherRepository publisherRepository,
74 @Mock PublisherVersionRepository publisherVersionRepository) { 74 @Mock PublisherVersionRepository publisherVersionRepository) {
......