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
2016-11-16 11:07:44 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bcebd399d8f66e21ef55f8125fee0bfb98a5cb1b
bcebd399
1 parent
edaf5c10
Injection par constructeur côté test.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
src/test/java/org/legrog/web/publisher/PublisherVersionViewTest.java
src/test/java/org/legrog/web/publisher/PublisherVersionViewTest.java
View file @
bcebd39
...
...
@@ -8,6 +8,7 @@ import org.junit.runner.RunWith;
import
org.legrog.entities.Country
;
import
org.legrog.entities.Publisher
;
import
org.legrog.entities.PublisherVersion
;
import
org.legrog.web.xyz.SharedService
;
import
org.mockito.Answers
;
import
org.mockito.Mock
;
import
org.mockito.runners.MockitoJUnitRunner
;
...
...
@@ -27,14 +28,11 @@ public class PublisherVersionViewTest {
private
PublisherVersionView
publisherVersionView
;
@Mock
private
PublisherService
publisherService
;
private
PublisherVersion
publisherVersion
;
@Before
public
void
setUp
()
{
publisherVersionView
=
new
PublisherVersionView
();
public
void
setUp
(
@Mock
PublisherService
publisherService
,
@Mock
SharedService
sharedService
)
{
publisherVersionView
=
new
PublisherVersionView
(
publisherService
,
sharedService
);
publisherVersionView
.
setEditMode
(
false
);
publisherVersionView
.
setNewPublisher
(
false
);
...
...
Please
register
or
login
to post a comment