Skip to content

Commit

Permalink
Fix Coverall
Browse files Browse the repository at this point in the history
  • Loading branch information
chripalombella committed Jul 9, 2019
1 parent 0632b6f commit adc89ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ public DDMGeolocation() {
super();
}

public DDMGeolocation(Double latitude, Double longitude) {
super();
this.latitude = latitude;
this.longitude = longitude;
}

public Double getLatitude() {
return latitude;
}
Expand Down
25 changes: 0 additions & 25 deletions src/main/java/com/github/davidepastore/liferay/model/DDMImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,6 @@ public DDMImage() {
super();
}

/**
* @param classPK
* @param groupId
* @param name
* @param alt
* @param title
* @param type
* @param uuid
* @param fileEntryId
* @param resourcePrimKey
*/
public DDMImage(String classPK, String groupId, String name, String alt, String title, String type, String uuid,
String fileEntryId, String resourcePrimKey) {
super();
this.classPK = classPK;
this.groupId = groupId;
this.name = name;
this.alt = alt;
this.title = title;
this.type = type;
this.uuid = uuid;
this.fileEntryId = fileEntryId;
this.resourcePrimKey = resourcePrimKey;
}

public String getClassPK() {
return classPK;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public void testFromJournalArticleSimple() throws Exception {
assertEquals("Header.png", testJournalArticle.getImage().getTitle());
assertEquals("document", testJournalArticle.getImage().getType());
assertEquals("223fac3c-abe2-e24a-1097-31cd1ce030155", testJournalArticle.getImage().getUuid());
assertEquals("", testJournalArticle.getImage().getName());
assertEquals("", testJournalArticle.getImage().getAlt());
assertEquals("", testJournalArticle.getImage().getFileEntryId());
assertEquals("", testJournalArticle.getImage().getResourcePrimKey());

//Documents and media value
assertNotNull(testJournalArticle.getDocumentsAndMedia());
Expand Down Expand Up @@ -179,7 +183,10 @@ public void testFromJournalArticleForDefaultLanguage() throws Exception {
assertEquals("20127", testJournalArticle.getImage().getGroupId());
assertEquals("Header.png", testJournalArticle.getImage().getTitle());
assertEquals("document", testJournalArticle.getImage().getType());
assertEquals("223fac3c-abe2-e24a-1097-31cd1ce030155", testJournalArticle.getImage().getUuid());
assertEquals("", testJournalArticle.getImage().getName());
assertEquals("", testJournalArticle.getImage().getAlt());
assertEquals("", testJournalArticle.getImage().getFileEntryId());
assertEquals("", testJournalArticle.getImage().getResourcePrimKey());

//Documents and media value
assertNotNull(testJournalArticle.getDocumentsAndMedia());
Expand Down

0 comments on commit adc89ea

Please sign in to comment.