JR Utily

fix display names

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