| 1 | package fr.sii.ogham.core.resource.path; | |
| 2 | ||
| 3 | import fr.sii.ogham.core.util.EqualsBuilder; | |
| 4 | import fr.sii.ogham.core.util.HashCodeBuilder; | |
| 5 | ||
| 6 | public class UnresolvedPath implements ResourcePath { | |
| 7 | private final String originalPath; | |
| 8 | ||
| 9 | public UnresolvedPath(String path) { | |
| 10 | super(); | |
| 11 | this.originalPath = path; | |
| 12 | } | |
| 13 | ||
| 14 | @Override | |
| 15 | public String getOriginalPath() { | |
| 16 |
1
1. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → RUN_ERROR |
return originalPath; |
| 17 | } | |
| 18 | | |
| 19 | @Override | |
| 20 | public int hashCode() { | |
| 21 |
1
1. hashCode : replaced int return with 0 for fr/sii/ogham/core/resource/path/UnresolvedPath::hashCode → NO_COVERAGE |
return new HashCodeBuilder().append(originalPath).hashCode(); |
| 22 | } | |
| 23 | ||
| 24 | @Override | |
| 25 | public boolean equals(Object obj) { | |
| 26 |
2
1. equals : replaced boolean return with false for fr/sii/ogham/core/resource/path/UnresolvedPath::equals → NO_COVERAGE 2. equals : replaced boolean return with true for fr/sii/ogham/core/resource/path/UnresolvedPath::equals → NO_COVERAGE |
return new EqualsBuilder(this, obj).appendFields("originalPath").isEqual(); |
| 27 | } | |
| 28 | | |
| 29 | @Override | |
| 30 | public String toString() { | |
| 31 | StringBuilder builder = new StringBuilder(); | |
| 32 | builder.append("'").append(originalPath).append("'"); | |
| 33 |
1
1. toString : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::toString → RUN_ERROR |
return builder.toString(); |
| 34 | } | |
| 35 | } | |
Mutations | ||
| 16 |
1.1 |
|
| 21 |
1.1 |
|
| 26 |
1.1 2.2 |
|
| 33 |
1.1 |