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
JR Utily
2016-11-15 23:10:01 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5c4728357ac386adcdc0b09d8f2bc6ed6ebdb818
5c472835
1 parent
5e346cd1
proxyable constructors
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
src/main/java/org/legrog/web/publisher/ListPublisherVersionsView.java
src/main/java/org/legrog/web/user/UpdateUserBean.java
src/test/java/org/legrog/web/publisher/ListPublisherVersionsViewTest.java
src/main/java/org/legrog/web/publisher/ListPublisherVersionsView.java
View file @
5c47283
...
...
@@ -33,12 +33,16 @@ public class ListPublisherVersionsView implements Serializable {
this
.
publisherService
=
publisherService
;
}
//no args constructor to make it proxyable
ListPublisherVersionsView
()
{
}
// View Action being executed at view loading
public
void
setView
()
{
logger
.
trace
(
"setView : publisherId = {}"
,
publisherId
);
publisherVersions
=
publisherService
.
getAllPublisherVersions
();
viewAll
=
(
publisherId
==
null
)
;
viewAll
=
(
publisherId
==
null
)
;
if
(!
viewAll
)
{
logger
.
trace
(
"setView : !viewAll"
);
filterOnID
();
...
...
@@ -60,10 +64,7 @@ public class ListPublisherVersionsView implements Serializable {
publisherVersions
=
publisherService
.
getAllPublisherVersions
();
filterOnID
();
}
/** no args constructor to make it proxyable */
protected
ListPublisherVersionsView
()
{
}
//
public
PublisherService
getPublisherService
()
{
return
publisherService
;
...
...
src/main/java/org/legrog/web/user/UpdateUserBean.java
View file @
5c47283
...
...
@@ -44,13 +44,16 @@ public class UpdateUserBean {
private
boolean
visible
;
private
boolean
activated
;
@Inject
public
UpdateUserBean
(
UserService
userService
,
SharedService
sharedService
)
{
this
.
userService
=
userService
;
this
.
sharedService
=
sharedService
;
}
//no args constructor to make it proxyable
UpdateUserBean
()
{
}
@PostConstruct
public
void
init
()
{
...
...
src/test/java/org/legrog/web/publisher/ListPublisherVersionsViewTest.java
View file @
5c47283
...
...
@@ -38,7 +38,7 @@ public class ListPublisherVersionsViewTest {
@Before
public
void
setUp
()
{
listPublisherVersionsView
=
new
ListPublisherVersionsView
();
// Données
publisherVersion
=
new
PublisherVersion
();
...
...
@@ -65,7 +65,8 @@ public class ListPublisherVersionsViewTest {
// Mock
when
(
publisherService
.
getAllPublisherVersions
()).
thenReturn
(
publisherVersions
);
listPublisherVersionsView
.
setPublisherService
(
publisherService
);
listPublisherVersionsView
=
new
ListPublisherVersionsView
(
publisherService
);
logger
.
trace
(
"listPublisherVersionsView : {}"
,
listPublisherVersionsView
);
logger
.
trace
(
"listPublisherVersionsView, publisherVersions : {}"
,
publisherVersions
);
}
...
...
Please
register
or
login
to post a comment