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-14 09:59:39 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
481eadf5e63421e067d95caeb2ae874ff00cf994
481eadf5
1 parent
1a574575
Renommage minimal des attributs de vue pour éviter les signalements de code dupliqué
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
132 deletions
src/main/java/org/legrog/web/publisher/PublisherVersionView.java
src/main/java/org/legrog/web/publisher/publisherVersion.xhtml
src/test/java/org/legrog/web/publisher/PublisherVersionViewTest.java
src/main/java/org/legrog/web/publisher/PublisherVersionView.java
View file @
481eadf
...
...
@@ -32,15 +32,15 @@ public class PublisherVersionView implements Serializable {
private
int
publisherVersionId
;
private
String
publisherName
;
private
String
publisherS
treetAddress
;
private
String
p
ublisherP
ostalCode
;
private
String
p
ublisherP
ostOfficeBoxNumber
;
private
String
publisherA
ddressRegion
;
private
String
publisherA
ddressLocality
;
private
String
s
treetAddress
;
private
String
postalCode
;
private
String
postOfficeBoxNumber
;
private
String
a
ddressRegion
;
private
String
a
ddressLocality
;
private
transient
Country
publisherAddressCountry
;
private
String
publisherT
elephone
;
private
String
publisherE
mail
;
private
String
publisherU
RL
;
private
String
t
elephone
;
private
String
e
mail
;
private
String
u
RL
;
private
String
publisherHistory
;
private
transient
Account
publisherVersionAuthor
;
private
Timestamp
publisherVersionDatetime
;
...
...
@@ -90,15 +90,15 @@ public class PublisherVersionView implements Serializable {
editMode
=
false
;
}
else
{
publisherName
=
null
;
publisherS
treetAddress
=
null
;
p
ublisherP
ostalCode
=
null
;
p
ublisherP
ostOfficeBoxNumber
=
null
;
publisherA
ddressRegion
=
null
;
publisherA
ddressLocality
=
null
;
s
treetAddress
=
null
;
postalCode
=
null
;
postOfficeBoxNumber
=
null
;
a
ddressRegion
=
null
;
a
ddressLocality
=
null
;
publisherAddressCountry
=
null
;
publisherT
elephone
=
null
;
publisherE
mail
=
null
;
publisherU
RL
=
null
;
t
elephone
=
null
;
e
mail
=
null
;
u
RL
=
null
;
publisherHistory
=
null
;
// Je ne pense pas que la ligne suivante soit nécessaire
publisher
=
null
;
...
...
@@ -124,16 +124,16 @@ public class PublisherVersionView implements Serializable {
private
PublisherVersion
getNewPublisherVersion
()
{
PublisherVersion
publisherVersion
=
new
PublisherVersion
();
publisherVersion
.
setPublisherAddressCountry
(
publisherAddressCountry
);
publisherVersion
.
setPublisherAddressLocality
(
publisherA
ddressLocality
);
publisherVersion
.
setPublisherAddressRegion
(
publisherA
ddressRegion
);
publisherVersion
.
setPublisherEmail
(
publisherE
mail
);
publisherVersion
.
setPublisherAddressLocality
(
a
ddressLocality
);
publisherVersion
.
setPublisherAddressRegion
(
a
ddressRegion
);
publisherVersion
.
setPublisherEmail
(
e
mail
);
publisherVersion
.
setPublisherHistory
(
publisherHistory
);
publisherVersion
.
setPublisherName
(
publisherName
);
publisherVersion
.
setPublisherPostalCode
(
p
ublisherP
ostalCode
);
publisherVersion
.
setPublisherPostOfficeBoxNumber
(
p
ublisherP
ostOfficeBoxNumber
);
publisherVersion
.
setPublisherStreetAddress
(
publisherS
treetAddress
);
publisherVersion
.
setPublisherTelephone
(
publisherT
elephone
);
publisherVersion
.
setPublisherURL
(
publisherU
RL
);
publisherVersion
.
setPublisherPostalCode
(
postalCode
);
publisherVersion
.
setPublisherPostOfficeBoxNumber
(
postOfficeBoxNumber
);
publisherVersion
.
setPublisherStreetAddress
(
s
treetAddress
);
publisherVersion
.
setPublisherTelephone
(
t
elephone
);
publisherVersion
.
setPublisherURL
(
u
RL
);
return
publisherVersion
;
}
...
...
@@ -163,10 +163,10 @@ public class PublisherVersionView implements Serializable {
}
void
update
()
{
logger
.
trace
(
"debut update, attributs locaux, publisherAddressCountry = {}
publisherAddressLocality = {} publisherAddressRegion = {} publisherEmail = {} publisherHistory = {} publisherName = {} publisherPostalCode = {} publisherPostOfficeBoxNumber = {} publisherStreetAddress = {} publisherTelephone {} publisherU
RL {}"
,
publisherAddressCountry
,
publisherAddressLocality
,
publisherA
ddressRegion
,
publisherEmail
,
publisherHistory
,
publisherName
,
publisherPostalCode
,
publisherP
ostOfficeBoxNumber
,
publisherStreetAddress
,
publisherTelephone
,
publisherU
RL
);
logger
.
trace
(
"debut update, attributs locaux, publisherAddressCountry = {}
addressLocality = {} addressRegion = {} email = {} publisherHistory = {} publisherName = {} postalCode = {} postOfficeBoxNumber = {} streetAddress = {} telephone {} u
RL {}"
,
publisherAddressCountry
,
addressLocality
,
a
ddressRegion
,
email
,
publisherHistory
,
publisherName
,
postalCode
,
p
ostOfficeBoxNumber
,
streetAddress
,
telephone
,
u
RL
);
PublisherVersion
publisherVersion
=
getNewPublisherVersion
();
...
...
@@ -196,15 +196,15 @@ public class PublisherVersionView implements Serializable {
logger
.
debug
(
"Found a publisher version : {}"
,
publisherVersion
.
toString
());
publisherName
=
publisherVersion
.
getPublisherName
();
publisherS
treetAddress
=
publisherVersion
.
getPublisherStreetAddress
();
p
ublisherP
ostalCode
=
publisherVersion
.
getPublisherPostalCode
();
p
ublisherP
ostOfficeBoxNumber
=
publisherVersion
.
getPublisherPostOfficeBoxNumber
();
publisherA
ddressRegion
=
publisherVersion
.
getPublisherAddressRegion
();
publisherA
ddressLocality
=
publisherVersion
.
getPublisherAddressLocality
();
s
treetAddress
=
publisherVersion
.
getPublisherStreetAddress
();
postalCode
=
publisherVersion
.
getPublisherPostalCode
();
postOfficeBoxNumber
=
publisherVersion
.
getPublisherPostOfficeBoxNumber
();
a
ddressRegion
=
publisherVersion
.
getPublisherAddressRegion
();
a
ddressLocality
=
publisherVersion
.
getPublisherAddressLocality
();
publisherAddressCountry
=
publisherVersion
.
getPublisherAddressCountry
();
publisherT
elephone
=
publisherVersion
.
getPublisherTelephone
();
publisherE
mail
=
publisherVersion
.
getPublisherEmail
();
publisherU
RL
=
publisherVersion
.
getPublisherURL
();
t
elephone
=
publisherVersion
.
getPublisherTelephone
();
e
mail
=
publisherVersion
.
getPublisherEmail
();
u
RL
=
publisherVersion
.
getPublisherURL
();
publisherHistory
=
publisherVersion
.
getPublisherHistory
();
publisher
=
publisherVersion
.
getPublisher
();
...
...
@@ -237,44 +237,44 @@ public class PublisherVersionView implements Serializable {
this
.
publisherName
=
publisherName
;
}
public
String
get
Publisher
StreetAddress
()
{
return
publisherS
treetAddress
;
public
String
getStreetAddress
()
{
return
s
treetAddress
;
}
public
void
set
PublisherStreetAddress
(
String
publisherS
treetAddress
)
{
this
.
publisherStreetAddress
=
publisherS
treetAddress
;
public
void
set
StreetAddress
(
String
s
treetAddress
)
{
this
.
streetAddress
=
s
treetAddress
;
}
public
String
getP
ublisherP
ostalCode
()
{
return
p
ublisherP
ostalCode
;
public
String
getPostalCode
()
{
return
postalCode
;
}
public
void
setP
ublisherPostalCode
(
String
publisherP
ostalCode
)
{
this
.
p
ublisherPostalCode
=
publisherP
ostalCode
;
public
void
setP
ostalCode
(
String
p
ostalCode
)
{
this
.
p
ostalCode
=
p
ostalCode
;
}
public
String
getP
ublisherP
ostOfficeBoxNumber
()
{
return
p
ublisherP
ostOfficeBoxNumber
;
public
String
getPostOfficeBoxNumber
()
{
return
postOfficeBoxNumber
;
}
public
void
setP
ublisherPostOfficeBoxNumber
(
String
publisherP
ostOfficeBoxNumber
)
{
this
.
p
ublisherPostOfficeBoxNumber
=
publisherP
ostOfficeBoxNumber
;
public
void
setP
ostOfficeBoxNumber
(
String
p
ostOfficeBoxNumber
)
{
this
.
p
ostOfficeBoxNumber
=
p
ostOfficeBoxNumber
;
}
public
String
get
Publisher
AddressRegion
()
{
return
publisherA
ddressRegion
;
public
String
getAddressRegion
()
{
return
a
ddressRegion
;
}
public
void
set
PublisherAddressRegion
(
String
publisherA
ddressRegion
)
{
this
.
publisherAddressRegion
=
publisherA
ddressRegion
;
public
void
set
AddressRegion
(
String
a
ddressRegion
)
{
this
.
addressRegion
=
a
ddressRegion
;
}
public
String
get
Publisher
AddressLocality
()
{
return
publisherA
ddressLocality
;
public
String
getAddressLocality
()
{
return
a
ddressLocality
;
}
public
void
set
PublisherAddressLocality
(
String
publisherA
ddressLocality
)
{
this
.
publisherAddressLocality
=
publisherA
ddressLocality
;
public
void
set
AddressLocality
(
String
a
ddressLocality
)
{
this
.
addressLocality
=
a
ddressLocality
;
}
public
Country
getPublisherAddressCountry
()
{
...
...
@@ -285,28 +285,28 @@ public class PublisherVersionView implements Serializable {
this
.
publisherAddressCountry
=
publisherAddressCountry
;
}
public
String
get
Publisher
Telephone
()
{
return
publisherT
elephone
;
public
String
getTelephone
()
{
return
t
elephone
;
}
public
void
set
PublisherTelephone
(
String
publisherT
elephone
)
{
this
.
publisherTelephone
=
publisherT
elephone
;
public
void
set
Telephone
(
String
t
elephone
)
{
this
.
telephone
=
t
elephone
;
}
public
String
get
Publisher
Email
()
{
return
publisherE
mail
;
public
String
getEmail
()
{
return
e
mail
;
}
public
void
set
PublisherEmail
(
String
publisherE
mail
)
{
this
.
publisherEmail
=
publisherE
mail
;
public
void
set
Email
(
String
e
mail
)
{
this
.
email
=
e
mail
;
}
public
String
get
PublisherU
RL
()
{
return
publisherU
RL
;
public
String
get
u
RL
()
{
return
u
RL
;
}
public
void
set
PublisherURL
(
String
publisherU
RL
)
{
this
.
publisherURL
=
publisherU
RL
;
public
void
set
uRL
(
String
u
RL
)
{
this
.
uRL
=
u
RL
;
}
public
String
getPublisherHistory
()
{
...
...
src/main/java/org/legrog/web/publisher/publisherVersion.xhtml
View file @
481eadf
...
...
@@ -30,28 +30,28 @@
<h:panelGrid
columns=
"2"
>
<label
for=
"publisherName"
>
publisherName
</label>
<input
type=
"text"
id=
"publisherName"
jsf:value=
'#{publisherVersionView.publisherName}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
publisherStreetAddress"
>
publisherS
treetAddress
</label>
<input
type=
"text"
id=
"
publisherStreetAddress"
jsf:value=
'#{publisherVersionView.publisherS
treetAddress}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"p
ublisherPostalCode"
>
publisherP
ostalCode
</label>
<input
type=
"text"
id=
"p
ublisherPostalCode"
jsf:value=
'#{publisherVersionView.publisherP
ostalCode}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"p
ublisherPostOfficeBoxNumber"
>
publisherP
ostOfficeBoxNumber
</label>
<input
type=
"text"
id=
"p
ublisherPostOfficeBoxNumber"
jsf:value=
'#{publisherVersionView.publisherP
ostOfficeBoxNumber}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
publisherAddressRegion"
>
publisherA
ddressRegion
</label>
<input
type=
"text"
id=
"
publisherAddressRegion"
jsf:value=
'#{publisherVersionView.publisherA
ddressRegion}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
publisherAddressLocality"
>
publisherA
ddressLocality
</label>
<input
type=
"text"
id=
"
publisherAddressLocality"
jsf:value=
'#{publisherVersionView.publisherA
ddressLocality}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
streetAddress"
>
s
treetAddress
</label>
<input
type=
"text"
id=
"
streetAddress"
jsf:value=
'#{publisherVersionView.s
treetAddress}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"p
ostalCode"
>
p
ostalCode
</label>
<input
type=
"text"
id=
"p
ostalCode"
jsf:value=
'#{publisherVersionView.p
ostalCode}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"p
ostOfficeBoxNumber"
>
p
ostOfficeBoxNumber
</label>
<input
type=
"text"
id=
"p
ostOfficeBoxNumber"
jsf:value=
'#{publisherVersionView.p
ostOfficeBoxNumber}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
addressRegion"
>
a
ddressRegion
</label>
<input
type=
"text"
id=
"
addressRegion"
jsf:value=
'#{publisherVersionView.a
ddressRegion}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
addressLocality"
>
a
ddressLocality
</label>
<input
type=
"text"
id=
"
addressLocality"
jsf:value=
'#{publisherVersionView.a
ddressLocality}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"publisherAddressCountry"
>
publisherAddressCountry
</label>
<h:selectOneMenu
id=
"publisherAddressCountry"
value=
"#{publisherVersionView.publisherAddressCountry}"
converter=
"omnifaces.SelectItemsConverter"
disabled=
"#{not publisherVersionView.editMode}"
>
<f:selectItems
value=
"#{publisherVersionView.availableCountries}"
var=
"country"
itemLabel=
"#{country.countryName}"
/>
</h:selectOneMenu>
<label
for=
"
publisherTelephone"
>
publisherT
elephone
</label>
<input
type=
"text"
id=
"
publisherTelephone"
jsf:value=
'#{publisherVersionView.publisherT
elephone}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
publisherEmail"
>
publisherE
mail
</label>
<input
type=
"text"
id=
"
publisherEmail"
jsf:value=
'#{publisherVersionView.publisherE
mail}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
publisherURL"
>
publisherU
RL
</label>
<input
type=
"text"
id=
"
publisherURL"
jsf:value=
'#{publisherVersionView.publisherU
RL}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
telephone"
>
t
elephone
</label>
<input
type=
"text"
id=
"
telephone"
jsf:value=
'#{publisherVersionView.t
elephone}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
email"
>
e
mail
</label>
<input
type=
"text"
id=
"
email"
jsf:value=
'#{publisherVersionView.e
mail}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"
uRL"
>
u
RL
</label>
<input
type=
"text"
id=
"
uRL"
jsf:value=
'#{publisherVersionView.u
RL}'
jsf:disabled=
"#{not publisherVersionView.editMode}"
/>
<label
for=
"publisherHistory"
>
publisherHistory
</label>
<textarea
id=
"publisherHistory"
rows=
""
cols=
""
jsf:disabled=
"#{not publisherVersionView.editMode}"
jsf:value=
"#{publisherVersionView.publisherHistory}"
/>
...
...
src/test/java/org/legrog/web/publisher/PublisherVersionViewTest.java
View file @
481eadf
...
...
@@ -92,14 +92,14 @@ public class PublisherVersionViewTest {
publisherVersionView
.
cancel
();
assertThat
(
publisherVersionView
.
getPublisherName
()).
isNull
();
assertThat
(
publisherVersionView
.
get
Publisher
StreetAddress
()).
isNull
();
assertThat
(
publisherVersionView
.
getP
ublisherP
ostalCode
()).
isNull
();
assertThat
(
publisherVersionView
.
getP
ublisherP
ostOfficeBoxNumber
()).
isNull
();
assertThat
(
publisherVersionView
.
get
Publisher
AddressRegion
()).
isNull
();
assertThat
(
publisherVersionView
.
get
Publisher
AddressLocality
()).
isNull
();
assertThat
(
publisherVersionView
.
get
Publisher
Telephone
()).
isNull
();
assertThat
(
publisherVersionView
.
get
Publisher
Email
()).
isNull
();
assertThat
(
publisherVersionView
.
get
PublisherU
RL
()).
isNull
();
assertThat
(
publisherVersionView
.
getStreetAddress
()).
isNull
();
assertThat
(
publisherVersionView
.
getPostalCode
()).
isNull
();
assertThat
(
publisherVersionView
.
getPostOfficeBoxNumber
()).
isNull
();
assertThat
(
publisherVersionView
.
getAddressRegion
()).
isNull
();
assertThat
(
publisherVersionView
.
getAddressLocality
()).
isNull
();
assertThat
(
publisherVersionView
.
getTelephone
()).
isNull
();
assertThat
(
publisherVersionView
.
getEmail
()).
isNull
();
assertThat
(
publisherVersionView
.
get
u
RL
()).
isNull
();
assertThat
(
publisherVersionView
.
getPublisherHistory
()).
isNull
();
assertThat
(
publisherVersionView
.
isEditMode
()).
isTrue
();
}
...
...
@@ -111,28 +111,28 @@ public class PublisherVersionViewTest {
publisherVersionView
.
setPublisherVersionId
(
1
);
publisherVersionView
.
setPublisherName
(
"1"
);
publisherVersionView
.
set
Publisher
StreetAddress
(
"2"
);
publisherVersionView
.
setP
ublisherP
ostalCode
(
"3"
);
publisherVersionView
.
setP
ublisherP
ostOfficeBoxNumber
(
"4"
);
publisherVersionView
.
set
Publisher
AddressRegion
(
"5"
);
publisherVersionView
.
set
Publisher
AddressLocality
(
"6"
);
publisherVersionView
.
setStreetAddress
(
"2"
);
publisherVersionView
.
setPostalCode
(
"3"
);
publisherVersionView
.
setPostOfficeBoxNumber
(
"4"
);
publisherVersionView
.
setAddressRegion
(
"5"
);
publisherVersionView
.
setAddressLocality
(
"6"
);
publisherVersionView
.
setPublisherAddressCountry
(
new
Country
());
publisherVersionView
.
set
Publisher
Telephone
(
"7"
);
publisherVersionView
.
set
Publisher
Email
(
"8"
);
publisherVersionView
.
set
PublisherU
RL
(
"9"
);
publisherVersionView
.
setTelephone
(
"7"
);
publisherVersionView
.
setEmail
(
"8"
);
publisherVersionView
.
set
u
RL
(
"9"
);
publisherVersionView
.
setPublisherHistory
(
"10"
);
publisherVersionView
.
cancel
();
assertThat
(
publisherVersionView
.
getPublisherName
()).
isEqualTo
(
"A"
);
assertThat
(
publisherVersionView
.
get
Publisher
StreetAddress
()).
isEqualTo
(
"B"
);
assertThat
(
publisherVersionView
.
getP
ublisherP
ostalCode
()).
isEqualTo
(
"C"
);
assertThat
(
publisherVersionView
.
getP
ublisherP
ostOfficeBoxNumber
()).
isEqualTo
(
"D"
);
assertThat
(
publisherVersionView
.
get
Publisher
AddressRegion
()).
isEqualTo
(
"E"
);
assertThat
(
publisherVersionView
.
get
Publisher
AddressLocality
()).
isEqualTo
(
"F"
);
assertThat
(
publisherVersionView
.
get
Publisher
Telephone
()).
isEqualTo
(
"G"
);
assertThat
(
publisherVersionView
.
get
Publisher
Email
()).
isEqualTo
(
"H"
);
assertThat
(
publisherVersionView
.
get
PublisherU
RL
()).
isEqualTo
(
"I"
);
assertThat
(
publisherVersionView
.
getStreetAddress
()).
isEqualTo
(
"B"
);
assertThat
(
publisherVersionView
.
getPostalCode
()).
isEqualTo
(
"C"
);
assertThat
(
publisherVersionView
.
getPostOfficeBoxNumber
()).
isEqualTo
(
"D"
);
assertThat
(
publisherVersionView
.
getAddressRegion
()).
isEqualTo
(
"E"
);
assertThat
(
publisherVersionView
.
getAddressLocality
()).
isEqualTo
(
"F"
);
assertThat
(
publisherVersionView
.
getTelephone
()).
isEqualTo
(
"G"
);
assertThat
(
publisherVersionView
.
getEmail
()).
isEqualTo
(
"H"
);
assertThat
(
publisherVersionView
.
get
u
RL
()).
isEqualTo
(
"I"
);
assertThat
(
publisherVersionView
.
getPublisherHistory
()).
isEqualTo
(
"J"
);
assertThat
(
publisherVersionView
.
isEditMode
()).
isFalse
();
...
...
@@ -157,14 +157,14 @@ public class PublisherVersionViewTest {
publisherVersionView
.
setPublisherVersionId
(
1
);
publisherVersionView
.
loadData
();
assertThat
(
publisherVersionView
.
getPublisherName
()).
isEqualTo
(
"A"
);
assertThat
(
publisherVersionView
.
get
Publisher
StreetAddress
()).
isEqualTo
(
"B"
);
assertThat
(
publisherVersionView
.
getP
ublisherP
ostalCode
()).
isEqualTo
(
"C"
);
assertThat
(
publisherVersionView
.
getP
ublisherP
ostOfficeBoxNumber
()).
isEqualTo
(
"D"
);
assertThat
(
publisherVersionView
.
get
Publisher
AddressRegion
()).
isEqualTo
(
"E"
);
assertThat
(
publisherVersionView
.
get
Publisher
AddressLocality
()).
isEqualTo
(
"F"
);
assertThat
(
publisherVersionView
.
get
Publisher
Telephone
()).
isEqualTo
(
"G"
);
assertThat
(
publisherVersionView
.
get
Publisher
Email
()).
isEqualTo
(
"H"
);
assertThat
(
publisherVersionView
.
get
PublisherU
RL
()).
isEqualTo
(
"I"
);
assertThat
(
publisherVersionView
.
getStreetAddress
()).
isEqualTo
(
"B"
);
assertThat
(
publisherVersionView
.
getPostalCode
()).
isEqualTo
(
"C"
);
assertThat
(
publisherVersionView
.
getPostOfficeBoxNumber
()).
isEqualTo
(
"D"
);
assertThat
(
publisherVersionView
.
getAddressRegion
()).
isEqualTo
(
"E"
);
assertThat
(
publisherVersionView
.
getAddressLocality
()).
isEqualTo
(
"F"
);
assertThat
(
publisherVersionView
.
getTelephone
()).
isEqualTo
(
"G"
);
assertThat
(
publisherVersionView
.
getEmail
()).
isEqualTo
(
"H"
);
assertThat
(
publisherVersionView
.
get
u
RL
()).
isEqualTo
(
"I"
);
assertThat
(
publisherVersionView
.
getPublisherHistory
()).
isEqualTo
(
"J"
);
assertThat
(
publisherVersionView
.
isNewPublisher
()).
isFalse
();
}
...
...
@@ -268,15 +268,15 @@ public class PublisherVersionViewTest {
publisherVersionView
.
setNewPublisher
(
false
);
publisherVersionView
.
setPublisherName
(
"1"
);
publisherVersionView
.
set
Publisher
StreetAddress
(
"2"
);
publisherVersionView
.
setP
ublisherP
ostalCode
(
"3"
);
publisherVersionView
.
setP
ublisherP
ostOfficeBoxNumber
(
"4"
);
publisherVersionView
.
set
Publisher
AddressRegion
(
"5"
);
publisherVersionView
.
set
Publisher
AddressLocality
(
"6"
);
publisherVersionView
.
setStreetAddress
(
"2"
);
publisherVersionView
.
setPostalCode
(
"3"
);
publisherVersionView
.
setPostOfficeBoxNumber
(
"4"
);
publisherVersionView
.
setAddressRegion
(
"5"
);
publisherVersionView
.
setAddressLocality
(
"6"
);
publisherVersionView
.
setPublisherAddressCountry
(
new
Country
());
publisherVersionView
.
set
Publisher
Telephone
(
"7"
);
publisherVersionView
.
set
Publisher
Email
(
"8"
);
publisherVersionView
.
set
PublisherU
RL
(
"9"
);
publisherVersionView
.
setTelephone
(
"7"
);
publisherVersionView
.
setEmail
(
"8"
);
publisherVersionView
.
set
u
RL
(
"9"
);
publisherVersionView
.
setPublisherHistory
(
"10"
);
publisherVersionView
.
setPublisher
(
publisherMock
);
}
...
...
@@ -339,15 +339,15 @@ public class PublisherVersionViewTest {
publisherVersionView
.
setNewPublisher
(
true
);
publisherVersionView
.
setPublisherName
(
"A"
);
publisherVersionView
.
set
Publisher
StreetAddress
(
"B"
);
publisherVersionView
.
setP
ublisherP
ostalCode
(
"C"
);
publisherVersionView
.
setP
ublisherP
ostOfficeBoxNumber
(
"D"
);
publisherVersionView
.
set
Publisher
AddressRegion
(
"E"
);
publisherVersionView
.
set
Publisher
AddressLocality
(
"F"
);
publisherVersionView
.
setStreetAddress
(
"B"
);
publisherVersionView
.
setPostalCode
(
"C"
);
publisherVersionView
.
setPostOfficeBoxNumber
(
"D"
);
publisherVersionView
.
setAddressRegion
(
"E"
);
publisherVersionView
.
setAddressLocality
(
"F"
);
publisherVersionView
.
setPublisherAddressCountry
(
new
Country
());
publisherVersionView
.
set
Publisher
Telephone
(
"G"
);
publisherVersionView
.
set
Publisher
Email
(
"H"
);
publisherVersionView
.
set
PublisherU
RL
(
"I"
);
publisherVersionView
.
setTelephone
(
"G"
);
publisherVersionView
.
setEmail
(
"H"
);
publisherVersionView
.
set
u
RL
(
"I"
);
publisherVersionView
.
setPublisherHistory
(
"J"
);
publisherVersionView
.
setPublisher
(
publisherMock
);
}
...
...
Please
register
or
login
to post a comment