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