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 |
7
1. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → NO_COVERAGE 2. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → TIMED_OUT 3. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → KILLED 4. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → KILLED 5. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → KILLED 6. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → KILLED 7. getOriginalPath : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::getOriginalPath → KILLED |
return originalPath; |
17 | } | |
18 | | |
19 | @Override | |
20 | public int hashCode() { | |
21 |
2
1. hashCode : replaced int return with 0 for fr/sii/ogham/core/resource/path/UnresolvedPath::hashCode → NO_COVERAGE 2. hashCode : replaced int return with 0 for fr/sii/ogham/core/resource/path/UnresolvedPath::hashCode → SURVIVED |
return new HashCodeBuilder().append(originalPath).hashCode(); |
22 | } | |
23 | ||
24 | @Override | |
25 | public boolean equals(Object obj) { | |
26 |
4
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 3. equals : replaced boolean return with false for fr/sii/ogham/core/resource/path/UnresolvedPath::equals → KILLED 4. equals : replaced boolean return with true for fr/sii/ogham/core/resource/path/UnresolvedPath::equals → KILLED |
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 |
3
1. toString : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::toString → NO_COVERAGE 2. toString : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::toString → SURVIVED 3. toString : replaced return value with "" for fr/sii/ogham/core/resource/path/UnresolvedPath::toString → TIMED_OUT |
return builder.toString(); |
34 | } | |
35 | } | |
Mutations | ||
16 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 |
|
21 |
1.1 2.2 |
|
26 |
1.1 2.2 3.3 4.4 |
|
33 |
1.1 2.2 3.3 |