| 1 | package com.fwmotion.threescale.cms.model; | |
| 2 | ||
| 3 | import jakarta.annotation.Nullable; | |
| 4 | import org.apache.commons.lang3.builder.EqualsBuilder; | |
| 5 | import org.apache.commons.lang3.builder.HashCodeBuilder; | |
| 6 | import org.apache.commons.lang3.builder.ToStringBuilder; | |
| 7 | ||
| 8 | import java.time.OffsetDateTime; | |
| 9 | ||
| 10 | public class CmsPage implements CmsTemplate { | |
| 11 | ||
| 12 | private OffsetDateTime createdAt; | |
| 13 | private OffsetDateTime updatedAt; | |
| 14 | private Long id; | |
| 15 | private Long sectionId; | |
| 16 | private String contentType; | |
| 17 | private String handler; | |
| 18 | private Boolean liquidEnabled; | |
| 19 | private String path; | |
| 20 | private Boolean hidden; | |
| 21 | private String layout; | |
| 22 | private String title; | |
| 23 | ||
| 24 | @Override | |
| 25 | public OffsetDateTime getCreatedAt() { | |
| 26 |
1
1. getCreatedAt : replaced return value with null for com/fwmotion/threescale/cms/model/CmsPage::getCreatedAt → NO_COVERAGE |
return createdAt; |
| 27 | } | |
| 28 | ||
| 29 | public void setCreatedAt(OffsetDateTime createdAt) { | |
| 30 | this.createdAt = createdAt; | |
| 31 | } | |
| 32 | ||
| 33 | @Override | |
| 34 | public OffsetDateTime getUpdatedAt() { | |
| 35 |
1
1. getUpdatedAt : replaced return value with null for com/fwmotion/threescale/cms/model/CmsPage::getUpdatedAt → NO_COVERAGE |
return updatedAt; |
| 36 | } | |
| 37 | ||
| 38 | public void setUpdatedAt(OffsetDateTime updatedAt) { | |
| 39 | this.updatedAt = updatedAt; | |
| 40 | } | |
| 41 | ||
| 42 | @Nullable | |
| 43 | @Override | |
| 44 | public Long getId() { | |
| 45 |
1
1. getId : replaced Long return value with 0L for com/fwmotion/threescale/cms/model/CmsPage::getId → SURVIVED |
return id; |
| 46 | } | |
| 47 | ||
| 48 | public void setId(Long id) { | |
| 49 | this.id = id; | |
| 50 | } | |
| 51 | ||
| 52 | public Long getSectionId() { | |
| 53 |
1
1. getSectionId : replaced Long return value with 0L for com/fwmotion/threescale/cms/model/CmsPage::getSectionId → NO_COVERAGE |
return sectionId; |
| 54 | } | |
| 55 | ||
| 56 | public void setSectionId(Long sectionId) { | |
| 57 | this.sectionId = sectionId; | |
| 58 | } | |
| 59 | ||
| 60 | public String getContentType() { | |
| 61 |
1
1. getContentType : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsPage::getContentType → NO_COVERAGE |
return contentType; |
| 62 | } | |
| 63 | ||
| 64 | public void setContentType(String contentType) { | |
| 65 | this.contentType = contentType; | |
| 66 | } | |
| 67 | ||
| 68 | public String getHandler() { | |
| 69 |
1
1. getHandler : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsPage::getHandler → NO_COVERAGE |
return handler; |
| 70 | } | |
| 71 | ||
| 72 | public void setHandler(String handler) { | |
| 73 | this.handler = handler; | |
| 74 | } | |
| 75 | ||
| 76 | public Boolean getLiquidEnabled() { | |
| 77 |
2
1. getLiquidEnabled : replaced Boolean return with False for com/fwmotion/threescale/cms/model/CmsPage::getLiquidEnabled → NO_COVERAGE 2. getLiquidEnabled : replaced Boolean return with True for com/fwmotion/threescale/cms/model/CmsPage::getLiquidEnabled → NO_COVERAGE |
return liquidEnabled; |
| 78 | } | |
| 79 | ||
| 80 | public void setLiquidEnabled(Boolean liquidEnabled) { | |
| 81 | this.liquidEnabled = liquidEnabled; | |
| 82 | } | |
| 83 | ||
| 84 | public String getPath() { | |
| 85 |
1
1. getPath : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsPage::getPath → NO_COVERAGE |
return path; |
| 86 | } | |
| 87 | ||
| 88 | public void setPath(String path) { | |
| 89 | this.path = path; | |
| 90 | } | |
| 91 | ||
| 92 | public Boolean getHidden() { | |
| 93 |
2
1. getHidden : replaced Boolean return with False for com/fwmotion/threescale/cms/model/CmsPage::getHidden → NO_COVERAGE 2. getHidden : replaced Boolean return with True for com/fwmotion/threescale/cms/model/CmsPage::getHidden → NO_COVERAGE |
return hidden; |
| 94 | } | |
| 95 | ||
| 96 | public void setHidden(Boolean hidden) { | |
| 97 | this.hidden = hidden; | |
| 98 | } | |
| 99 | ||
| 100 | public String getLayout() { | |
| 101 |
1
1. getLayout : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsPage::getLayout → NO_COVERAGE |
return layout; |
| 102 | } | |
| 103 | ||
| 104 | public void setLayout(String layout) { | |
| 105 | this.layout = layout; | |
| 106 | } | |
| 107 | ||
| 108 | public String getTitle() { | |
| 109 |
1
1. getTitle : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsPage::getTitle → NO_COVERAGE |
return title; |
| 110 | } | |
| 111 | ||
| 112 | public void setTitle(String title) { | |
| 113 | this.title = title; | |
| 114 | } | |
| 115 | ||
| 116 | @Override | |
| 117 | public boolean equals(Object o) { | |
| 118 |
2
1. equals : replaced boolean return with false for com/fwmotion/threescale/cms/model/CmsPage::equals → NO_COVERAGE 2. equals : removed conditional - replaced equality check with true → NO_COVERAGE |
if (this == o) return true; |
| 119 | ||
| 120 |
3
1. equals : replaced boolean return with true for com/fwmotion/threescale/cms/model/CmsPage::equals → NO_COVERAGE 2. equals : removed conditional - replaced equality check with false → NO_COVERAGE 3. equals : removed conditional - replaced equality check with true → NO_COVERAGE |
if (!(o instanceof CmsPage cmsPage)) return false; |
| 121 | ||
| 122 |
2
1. equals : replaced boolean return with false for com/fwmotion/threescale/cms/model/CmsPage::equals → NO_COVERAGE 2. equals : replaced boolean return with true for com/fwmotion/threescale/cms/model/CmsPage::equals → NO_COVERAGE |
return new EqualsBuilder().append(getId(), cmsPage.getId()).isEquals(); |
| 123 | } | |
| 124 | ||
| 125 | @Override | |
| 126 | public int hashCode() { | |
| 127 |
1
1. hashCode : replaced int return with 0 for com/fwmotion/threescale/cms/model/CmsPage::hashCode → NO_COVERAGE |
return new HashCodeBuilder(17, 37).append(getId()).toHashCode(); |
| 128 | } | |
| 129 | ||
| 130 | @Override | |
| 131 | public String toString() { | |
| 132 |
1
1. toString : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsPage::toString → NO_COVERAGE |
return new ToStringBuilder(this) |
| 133 | .append("createdAt", createdAt) | |
| 134 | .append("updatedAt", updatedAt) | |
| 135 | .append("id", id) | |
| 136 | .append("contentType", contentType) | |
| 137 | .append("handler", handler) | |
| 138 | .append("liquidEnabled", liquidEnabled) | |
| 139 | .append("path", path) | |
| 140 | .append("hidden", hidden) | |
| 141 | .append("layout", layout) | |
| 142 | .append("title", title) | |
| 143 | .toString(); | |
| 144 | } | |
| 145 | } | |
Mutations | ||
| 26 |
1.1 |
|
| 35 |
1.1 |
|
| 45 |
1.1 |
|
| 53 |
1.1 |
|
| 61 |
1.1 |
|
| 69 |
1.1 |
|
| 77 |
1.1 2.2 |
|
| 85 |
1.1 |
|
| 93 |
1.1 2.2 |
|
| 101 |
1.1 |
|
| 109 |
1.1 |
|
| 118 |
1.1 2.2 |
|
| 120 |
1.1 2.2 3.3 |
|
| 122 |
1.1 2.2 |
|
| 127 |
1.1 |
|
| 132 |
1.1 |