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-03 16:55:11 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c7f49b41580889380cda3077e861c4f0d4680f95
c7f49b41
1 parent
1995cd7a
Réécriture DisplayName en when/should.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/test/java/org/legrog/web/publisher/PublisherServiceSpringTest.java
src/test/java/org/legrog/web/publisher/PublisherServiceSpringTest.java
View file @
c7f49b4
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment