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 10:55:19 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fcfdd731c8714caf428ae8293ec79a14e98874f0
fcfdd731
1 parent
002fa9b2
Vrai log d'erreur au lieu de la console. :(
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/test/java/org/legrog/web/publisher/PublisherServiceDefaultTest.java
src/test/java/org/legrog/web/publisher/PublisherServiceDefaultTest.java
View file @
fcfdd73
...
...
@@ -13,6 +13,8 @@ import org.mockito.ArgumentCaptor;
import
org.mockito.Captor
;
import
org.mockito.Mock
;
import
org.mockito.Mockito
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.util.HashSet
;
import
java.util.Set
;
...
...
@@ -27,6 +29,7 @@ import static org.mockito.Mockito.*;
@ExtendWith
(
MockitoExtension
.
class
)
@DisplayName
(
"Service layer for all publisher-related data"
)
public
class
PublisherServiceDefaultTest
{
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
PublisherServiceDefault
publisherServiceDefault
;
PublisherVersion
publisherVersion
;
...
...
@@ -109,7 +112,7 @@ public class PublisherServiceDefaultTest {
try
{
Mockito
.
verify
(
publisherSearchRepository
).
save
(
indexedPublisherArgumentCaptor
.
capture
());
}
catch
(
IndexingException
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"IndexingException {}"
,
e
);
}
IndexedPublisher
indexedPublisher
=
indexedPublisherArgumentCaptor
.
getValue
();
assertThat
(
indexedPublisher
.
getPublisherId
()).
isEqualTo
(
111
);
...
...
Please
register
or
login
to post a comment