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.
|
||||
// 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
|
||||
if (resourceId.startsWith(myResourceType + "/")) {
|
||||
resourceId = resourceId.substring(myResourceType.length() + 1);
|
||||
int slashIdx = resourceId.indexOf('/');
|
||||
if (slashIdx != -1) {
|
||||
resourceId = resourceId.substring(slashIdx + 1);
|
||||
}
|
||||
} else {
|
||||
resourceId = nextResourceId.toString();
|
||||
|
|
Loading…
Reference in New Issue