Test cleanup
This commit is contained in:
parent
bd0502e368
commit
c79a705124
|
@ -172,8 +172,9 @@ public class HistoryBuilder {
|
||||||
// For that reason, strip the prefix before setting the transientForcedId below.
|
// For that reason, strip the prefix before setting the transientForcedId below.
|
||||||
// If not stripped this messes up the id of the resource as the resourceType would be repeated
|
// If not stripped this messes up the id of the resource as the resourceType would be repeated
|
||||||
// twice like Patient/Patient/1234 in the resource constructed
|
// twice like Patient/Patient/1234 in the resource constructed
|
||||||
if (resourceId.startsWith(myResourceType + "/")) {
|
int slashIdx = resourceId.indexOf('/');
|
||||||
resourceId = resourceId.substring(myResourceType.length() + 1);
|
if (slashIdx != -1) {
|
||||||
|
resourceId = resourceId.substring(slashIdx + 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
resourceId = nextResourceId.toString();
|
resourceId = nextResourceId.toString();
|
||||||
|
|
Loading…
Reference in New Issue