From 03f7289ac8c5f8ba38771bb05e2a5479ff27a943 Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Tue, 4 Aug 2020 09:16:47 -0400 Subject: [PATCH] Add test for #2012 --- .../provider/r4/ConsentInterceptorResourceProviderR4Test.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ConsentInterceptorResourceProviderR4Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ConsentInterceptorResourceProviderR4Test.java index 4b8936d1200..80c3b8bb229 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ConsentInterceptorResourceProviderR4Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/r4/ConsentInterceptorResourceProviderR4Test.java @@ -287,6 +287,8 @@ public class ConsentInterceptorResourceProviderR4Test extends BaseResourceProvid List returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(myObservationIdsEvenOnlyBackwards.subList(0, 5), returnedIdValues); + // Per #2012 + assertNull(result.getTotalElement().getValue()); } @Test