| 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 CmsLayout implements CmsTemplate { | |
| 11 | ||
| 12 | private OffsetDateTime createdAt; | |
| 13 | private OffsetDateTime updatedAt; | |
| 14 | private Long id; | |
| 15 | private String systemName; | |
| 16 | private String title; | |
| 17 | private String contentType; | |
| 18 | private String handler; | |
| 19 | private Boolean liquidEnabled; | |
| 20 | private String draftContent; | |
| 21 | private String publishedContent; | |
| 22 | ||
| 23 | @Override | |
| 24 | public OffsetDateTime getCreatedAt() { | |
| 25 |
1
1. getCreatedAt : replaced return value with null for com/fwmotion/threescale/cms/model/CmsLayout::getCreatedAt → KILLED |
return createdAt; |
| 26 | } | |
| 27 | ||
| 28 | public void setCreatedAt(OffsetDateTime createdAt) { | |
| 29 | this.createdAt = createdAt; | |
| 30 | } | |
| 31 | ||
| 32 | @Override | |
| 33 | public OffsetDateTime getUpdatedAt() { | |
| 34 |
1
1. getUpdatedAt : replaced return value with null for com/fwmotion/threescale/cms/model/CmsLayout::getUpdatedAt → KILLED |
return updatedAt; |
| 35 | } | |
| 36 | ||
| 37 | public void setUpdatedAt(OffsetDateTime updatedAt) { | |
| 38 | this.updatedAt = updatedAt; | |
| 39 | } | |
| 40 | ||
| 41 | @Nullable | |
| 42 | @Override | |
| 43 | public Long getId() { | |
| 44 |
1
1. getId : replaced Long return value with 0L for com/fwmotion/threescale/cms/model/CmsLayout::getId → KILLED |
return id; |
| 45 | } | |
| 46 | ||
| 47 | public void setId(Long id) { | |
| 48 | this.id = id; | |
| 49 | } | |
| 50 | ||
| 51 | public String getSystemName() { | |
| 52 |
1
1. getSystemName : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsLayout::getSystemName → KILLED |
return systemName; |
| 53 | } | |
| 54 | ||
| 55 | public void setSystemName(String systemName) { | |
| 56 | this.systemName = systemName; | |
| 57 | } | |
| 58 | ||
| 59 | public String getTitle() { | |
| 60 |
1
1. getTitle : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsLayout::getTitle → KILLED |
return title; |
| 61 | } | |
| 62 | ||
| 63 | public void setTitle(String title) { | |
| 64 | this.title = title; | |
| 65 | } | |
| 66 | ||
| 67 | public String getContentType() { | |
| 68 |
1
1. getContentType : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsLayout::getContentType → KILLED |
return contentType; |
| 69 | } | |
| 70 | ||
| 71 | public void setContentType(String contentType) { | |
| 72 | this.contentType = contentType; | |
| 73 | } | |
| 74 | ||
| 75 | public String getHandler() { | |
| 76 |
1
1. getHandler : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsLayout::getHandler → KILLED |
return handler; |
| 77 | } | |
| 78 | ||
| 79 | public void setHandler(String handler) { | |
| 80 | this.handler = handler; | |
| 81 | } | |
| 82 | ||
| 83 | public Boolean getLiquidEnabled() { | |
| 84 |
2
1. getLiquidEnabled : replaced Boolean return with True for com/fwmotion/threescale/cms/model/CmsLayout::getLiquidEnabled → SURVIVED 2. getLiquidEnabled : replaced Boolean return with False for com/fwmotion/threescale/cms/model/CmsLayout::getLiquidEnabled → KILLED |
return liquidEnabled; |
| 85 | } | |
| 86 | ||
| 87 | public void setLiquidEnabled(Boolean liquidEnabled) { | |
| 88 | this.liquidEnabled = liquidEnabled; | |
| 89 | } | |
| 90 | ||
| 91 | public String getDraftContent() { | |
| 92 |
1
1. getDraftContent : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsLayout::getDraftContent → KILLED |
return draftContent; |
| 93 | } | |
| 94 | ||
| 95 | public void setDraftContent(String draftContent) { | |
| 96 | this.draftContent = draftContent; | |
| 97 | } | |
| 98 | ||
| 99 | public String getPublishedContent() { | |
| 100 |
1
1. getPublishedContent : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsLayout::getPublishedContent → KILLED |
return publishedContent; |
| 101 | } | |
| 102 | ||
| 103 | public void setPublishedContent(String publishedContent) { | |
| 104 | this.publishedContent = publishedContent; | |
| 105 | } | |
| 106 | ||
| 107 | @Override | |
| 108 | public boolean equals(Object o) { | |
| 109 |
2
1. equals : replaced boolean return with false for com/fwmotion/threescale/cms/model/CmsLayout::equals → NO_COVERAGE 2. equals : removed conditional - replaced equality check with true → NO_COVERAGE |
if (this == o) return true; |
| 110 | ||
| 111 |
3
1. equals : removed conditional - replaced equality check with false → NO_COVERAGE 2. equals : removed conditional - replaced equality check with true → NO_COVERAGE 3. equals : replaced boolean return with true for com/fwmotion/threescale/cms/model/CmsLayout::equals → NO_COVERAGE |
if (!(o instanceof CmsLayout cmsLayout)) return false; |
| 112 | ||
| 113 |
2
1. equals : replaced boolean return with false for com/fwmotion/threescale/cms/model/CmsLayout::equals → NO_COVERAGE 2. equals : replaced boolean return with true for com/fwmotion/threescale/cms/model/CmsLayout::equals → NO_COVERAGE |
return new EqualsBuilder().append(getId(), cmsLayout.getId()).isEquals(); |
| 114 | } | |
| 115 | ||
| 116 | @Override | |
| 117 | public int hashCode() { | |
| 118 |
1
1. hashCode : replaced int return with 0 for com/fwmotion/threescale/cms/model/CmsLayout::hashCode → NO_COVERAGE |
return new HashCodeBuilder(17, 37).append(getId()).toHashCode(); |
| 119 | } | |
| 120 | ||
| 121 | @Override | |
| 122 | public String toString() { | |
| 123 |
1
1. toString : replaced return value with "" for com/fwmotion/threescale/cms/model/CmsLayout::toString → NO_COVERAGE |
return new ToStringBuilder(this) |
| 124 | .append("createdAt", createdAt) | |
| 125 | .append("updatedAt", updatedAt) | |
| 126 | .append("id", id) | |
| 127 | .append("systemName", systemName) | |
| 128 | .append("contentType", contentType) | |
| 129 | .append("handler", handler) | |
| 130 | .append("liquidEnabled", liquidEnabled) | |
| 131 | .append("draftContent", draftContent) | |
| 132 | .append("publishedContent", publishedContent) | |
| 133 | .toString(); | |
| 134 | } | |
| 135 | } | |
Mutations | ||
| 25 |
1.1 |
|
| 34 |
1.1 |
|
| 44 |
1.1 |
|
| 52 |
1.1 |
|
| 60 |
1.1 |
|
| 68 |
1.1 |
|
| 76 |
1.1 |
|
| 84 |
1.1 2.2 |
|
| 92 |
1.1 |
|
| 100 |
1.1 |
|
| 109 |
1.1 2.2 |
|
| 111 |
1.1 2.2 3.3 |
|
| 113 |
1.1 2.2 |
|
| 118 |
1.1 |
|
| 123 |
1.1 |