Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-02-07 11:14:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
522335da0c1ab7211a2b7a870516de8ededbf7e9
522335da
1 parent
aa9c0123
On logge l'erreur, même pour un test.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/test/java/org/legrog/entities/PublisherSearchRepositorySolrjTest.java
src/test/java/org/legrog/entities/PublisherSearchRepositorySolrjTest.java
View file @
522335d
...
...
@@ -9,6 +9,8 @@ import org.junit.platform.runner.JUnitPlatform;
import
org.junit.runner.RunWith
;
import
org.legrog.test.MockitoExtension
;
import
org.mockito.Mock
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.io.IOException
;
...
...
@@ -25,6 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@DisplayName
(
"Indexes and searches with SearchRepository"
)
public
class
PublisherSearchRepositorySolrjTest
{
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
private
PublisherSearchRepository
publisherSearchRepository
;
private
SolrClient
solrClient
;
...
...
@@ -60,6 +63,7 @@ public class PublisherSearchRepositorySolrjTest {
try
{
publisherSearchRepository
.
save
(
indexedPublisher
);
}
catch
(
IndexingException
ie
)
{
logger
.
error
(
"IndexingException {}"
,
ie
);
assertThat
(
ie
.
getRootCause
().
getClass
()).
isEqualTo
(
BindingException
.
class
);
}
}
...
...
Please
register
or
login
to post a comment