JR Utily

fix display names

...@@ -37,14 +37,14 @@ public class PublisherSearchRepositorySolrjTest { ...@@ -37,14 +37,14 @@ public class PublisherSearchRepositorySolrjTest {
37 class saveTests { 37 class saveTests {
38 38
39 @Test 39 @Test
40 - @DisplayName("when called should addBean IndexedPublisher with commitWithinMs of 1 to repository") 40 + @DisplayName("when called with right parameters, should addBean IndexedPublisher with commitWithinMs of 1 to repository")
41 public void addBeanTest(@Mock IndexedPublisher indexedPublisher) throws IndexingException, SolrServerException, IOException { 41 public void addBeanTest(@Mock IndexedPublisher indexedPublisher) throws IndexingException, SolrServerException, IOException {
42 publisherSearchRepository.save(indexedPublisher); 42 publisherSearchRepository.save(indexedPublisher);
43 verify(solrClient).addBean(indexedPublisher, 1); 43 verify(solrClient).addBean(indexedPublisher, 1);
44 } 44 }
45 45
46 @Test 46 @Test
47 - @DisplayName("When call gets an IOException, should throw an IndexingException cobtaining it") 47 + @DisplayName("When repository in error, should throw an IndexingException")
48 public void addBeanIOETest(@Mock IndexedPublisher indexedPublisher) throws SolrServerException, IOException { 48 public void addBeanIOETest(@Mock IndexedPublisher indexedPublisher) throws SolrServerException, IOException {
49 when(solrClient.addBean(indexedPublisher, 1)).thenThrow(new IOException()); 49 when(solrClient.addBean(indexedPublisher, 1)).thenThrow(new IOException());
50 Assertions.assertThrows(IndexingException.class, () -> publisherSearchRepository.save(indexedPublisher)); 50 Assertions.assertThrows(IndexingException.class, () -> publisherSearchRepository.save(indexedPublisher));
......