Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Khalid Ali
bookshare-backend
Commits
be141e7d
Commit
be141e7d
authored
Dec 18, 2018
by
Khalid Ali
Browse files
Remove a bunch of commented code
parent
e832b39f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/gmu/bookshare/model/ListingDto.java
View file @
be141e7d
...
...
@@ -16,11 +16,6 @@ import java.util.Date;
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
ListingDto
{
// @Getter(AccessLevel.NONE)
// @Setter(AccessLevel.NONE)
// private final SimpleDateFormat dateFormat
// = new SimpleDateFormat("yyyy-MM-dd HH:mm");
@JsonProperty
(
"id"
)
private
Long
id
;
...
...
@@ -50,12 +45,4 @@ public class ListingDto {
@JsonProperty
(
"title"
)
private
String
title
;
// public Date getCreateDateConverted() throws ParseException {
// return dateFormat.parse(this.createDate);
// }
//
// public void setCreateDateConverted(Date date) {
// this.createDate = dateFormat.format(date);
// }
}
src/test/java/com/gmu/bookshare/BookshareRestControllerIntegrationTest.java
View file @
be141e7d
...
...
@@ -82,17 +82,11 @@ public class BookshareRestControllerIntegrationTest {
ListingDto
listingDtoNotInDB
=
modelMapper
.
map
(
listingNotInDB
,
ListingDto
.
class
);
given
(
listingService
.
updateListing
(
any
(
ListingEntity
.
class
))).
willReturn
(
listingInDB
);
// given(listingService.updateListing(listingNotInDB)).willReturn(null);
mvc
.
perform
(
put
(
"/bs/api/listing/"
+
listingDtoInDB
.
getId
())
.
contentType
(
MediaType
.
APPLICATION_JSON
)
.
content
(
JsonUtil
.
writeValueAsString
(
listingDtoInDB
)))
.
andExpect
(
status
().
isOk
());
// mvc.perform(put("/bs/api/listing/" + listingDtoNotInDB.getId())
// .contentType(MediaType.APPLICATION_JSON)
// .content(JsonUtil.writeValueAsString(listingDtoNotInDB)))
// .andExpect(status().isNotFound());
}
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment