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 15:22:05 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b8b03182a74a53aee8c80a8ff4f8cf7b3dd57920
b8b03182
1 parent
d615fde3
Distinction argument capturé d'attribut de classe de même nom
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/test/java/org/legrog/web/publisher/PublisherVersionViewTest.java
src/test/java/org/legrog/web/publisher/PublisherVersionViewTest.java
View file @
b8b0318
...
...
@@ -307,8 +307,8 @@ public class PublisherVersionViewTest {
@Test
public
void
shouldAddNewVersion
(
@Mock
PublisherService
publisherService
)
{
Mockito
.
verify
(
publisherService
).
addVersionToPublisher
(
publisherArgumentCaptor
.
capture
(),
publisherVersionArgumentCaptor
.
capture
());
PublisherVersion
p
ublisherVersion
=
publisherVersionArgumentCaptor
.
getValue
();
assertThat
(
p
ublisherVersion
.
getPublisherName
()).
isEqualTo
(
"1"
);
PublisherVersion
capturedP
ublisherVersion
=
publisherVersionArgumentCaptor
.
getValue
();
assertThat
(
capturedP
ublisherVersion
.
getPublisherName
()).
isEqualTo
(
"1"
);
}
@DisplayName
(
"should put state in non edit mode"
)
...
...
@@ -375,8 +375,8 @@ public class PublisherVersionViewTest {
@Test
public
void
shouldSave
(
@Mock
PublisherService
publisherService
)
{
Mockito
.
verify
(
publisherService
).
addNewPublisher
(
publisherVersionArgumentCaptor
.
capture
());
PublisherVersion
p
ublisherVersion
=
publisherVersionArgumentCaptor
.
getValue
();
assertThat
(
p
ublisherVersion
.
getPublisherName
()).
isEqualTo
(
"A"
);
PublisherVersion
capturedP
ublisherVersion
=
publisherVersionArgumentCaptor
.
getValue
();
assertThat
(
capturedP
ublisherVersion
.
getPublisherName
()).
isEqualTo
(
"A"
);
}
...
...
Please
register
or
login
to post a comment