1 | package com.fwmotion.threescale.cms.model; | |
2 | ||
3 | import jakarta.annotation.Nonnull; | |
4 | import jakarta.annotation.Nullable; | |
5 | import org.apache.commons.lang3.builder.EqualsBuilder; | |
6 | import org.apache.commons.lang3.builder.HashCodeBuilder; | |
7 | import org.apache.commons.lang3.builder.ToStringBuilder; | |
8 | ||
9 | import java.time.OffsetDateTime; | |
10 | ||
11 | public class CmsFile implements CmsObject { | |
12 | ||
13 | private OffsetDateTime createdAt; | |
14 | private OffsetDateTime updatedAt; | |
15 | private Long id; | |
16 | private Long sectionId; | |
17 | private String path; | |
18 | private Boolean downloadable; | |
19 | private String contentType; | |
20 | ||
21 | @Nonnull | |
22 | @Override | |
23 | public ThreescaleObjectType getType() { | |
24 |
1
1. getType : replaced return value with null for com/fwmotion/threescale/cms/model/CmsFile::getType → KILLED |
return ThreescaleObjectType.FILE; |
25 | } | |
26 | ||
27 | @Override | |
28 | public OffsetDateTime getCreatedAt() { | |
29 |
1
1. getCreatedAt : replaced return value with null for com/fwmotion/threescale/cms/model/CmsFile::getCreatedAt → KILLED |
return createdAt; |
30 | } | |
31 | ||
32 | public void setCreatedAt(OffsetDateTime createdAt) { | |
33 | this.createdAt = createdAt; | |
34 | } | |
35 | ||
36 | @Override | |
37 | public OffsetDateTime getUpdatedAt() { | |
38 |
1
1. getUpdatedAt : replaced return value with null for com/fwmotion/threescale/cms/model/CmsFile::getUpdatedAt → KILLED |
return updatedAt; |
39 | } | |
40 | ||
41 | public void setUpdatedAt(OffsetDateTime updatedAt) { | |
42 | this.updatedAt = updatedAt; | |
43 | } | |
44 | ||
45 | @Nullable | |
46 | @Override | |
47 | public Long getId() { | |
48 |
1
1. getId : replaced Long return value with 0L for com/fwmotion/threescale/cms/model/CmsFile::getId → KILLED |
return id; |
49 | } | |
50 | ||
51 | public void setId(Long id) { | |
52 | this.id = id; | |
53 | } | |
54 | ||
55 | public Long getSectionId() { | |
56 |
1
1. getSectionId : replaced Long return value with 0L for com/fwmotion/threescale/cms/model/CmsFile::getSectionId → KILLED |
return sectionId; |
57 | } | |
58 | ||
59 | public void setSectionId(Long sectionId) { | |
60 | this.sectionId = sectionId; | |
61 | } | |
62 | ||
63 | public String getPath() { | |
64 |
1
1. getPath : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsFile::getPath → KILLED |
return path; |
65 | } | |
66 | ||
67 | public void setPath(String path) { | |
68 | this.path = path; | |
69 | } | |
70 | ||
71 | public Boolean getDownloadable() { | |
72 |
2
1. getDownloadable : replaced Boolean return with False for com/fwmotion/threescale/cms/model/CmsFile::getDownloadable → SURVIVED 2. getDownloadable : replaced Boolean return with True for com/fwmotion/threescale/cms/model/CmsFile::getDownloadable → SURVIVED |
return downloadable; |
73 | } | |
74 | ||
75 | public void setDownloadable(Boolean downloadable) { | |
76 | this.downloadable = downloadable; | |
77 | } | |
78 | ||
79 | public String getContentType() { | |
80 |
1
1. getContentType : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsFile::getContentType → SURVIVED |
return contentType; |
81 | } | |
82 | ||
83 | public void setContentType(String contentType) { | |
84 | this.contentType = contentType; | |
85 | } | |
86 | ||
87 | @Override | |
88 | public boolean equals(Object o) { | |
89 |
2
1. equals : replaced boolean return with false for com/fwmotion/threescale/cms/model/CmsFile::equals → NO_COVERAGE 2. equals : removed conditional - replaced equality check with true → NO_COVERAGE |
if (this == o) return true; |
90 | ||
91 |
3
1. equals : replaced boolean return with true for com/fwmotion/threescale/cms/model/CmsFile::equals → NO_COVERAGE 2. equals : removed conditional - replaced equality check with true → NO_COVERAGE 3. equals : removed conditional - replaced equality check with false → NO_COVERAGE |
if (!(o instanceof CmsFile cmsFile)) return false; |
92 | ||
93 |
2
1. equals : replaced boolean return with true for com/fwmotion/threescale/cms/model/CmsFile::equals → NO_COVERAGE 2. equals : replaced boolean return with false for com/fwmotion/threescale/cms/model/CmsFile::equals → NO_COVERAGE |
return new EqualsBuilder().append(getId(), cmsFile.getId()).isEquals(); |
94 | } | |
95 | ||
96 | @Override | |
97 | public int hashCode() { | |
98 |
1
1. hashCode : replaced int return with 0 for com/fwmotion/threescale/cms/model/CmsFile::hashCode → NO_COVERAGE |
return new HashCodeBuilder(17, 37).append(getId()).toHashCode(); |
99 | } | |
100 | ||
101 | @Override | |
102 | public String toString() { | |
103 |
1
1. toString : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsFile::toString → NO_COVERAGE |
return new ToStringBuilder(this) |
104 | .append("createdAt", createdAt) | |
105 | .append("updatedAt", updatedAt) | |
106 | .append("id", id) | |
107 | .append("sectionId", sectionId) | |
108 | .append("path", path) | |
109 | .append("downloadable", downloadable) | |
110 | .toString(); | |
111 | } | |
112 | } | |
Mutations | ||
24 |
1.1 |
|
29 |
1.1 |
|
38 |
1.1 |
|
48 |
1.1 |
|
56 |
1.1 |
|
64 |
1.1 |
|
72 |
1.1 2.2 |
|
80 |
1.1 |
|
89 |
1.1 2.2 |
|
91 |
1.1 2.2 3.3 |
|
93 |
1.1 2.2 |
|
98 |
1.1 |
|
103 |
1.1 |