Jean-Francois Leveque

Réécriture DisplayName en when/should.

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