From 75b660c56f120739e217a07e016f530ac8f11bb3 Mon Sep 17 00:00:00 2001 From: Loganathan Sekar <42532387+LoganathanSekar7627@users.noreply.github.com> Date: Tue, 11 Apr 2023 20:42:42 +0530 Subject: [PATCH] Mosip 22874 authtype lock websub issue 4 (#855) * Added debug logging filter * Added jdoc * Minor cleanup * Added condition for debug log * Added support to auto repeat of servlet request stream, added topic resubscription support * Minor fix * Removed unwanted file * Test fixes * Fix auth type lock unlock notification * Fix for notification count for entries having olv partner id * junit fix --------- Co-authored-by: Loganathan Sekar Signed-off-by: Ritik Jain --- .../resident/test/service/ResidentServiceDownloadCardTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentServiceDownloadCardTest.java b/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentServiceDownloadCardTest.java index 0f03b5a398c..af523d6c421 100644 --- a/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentServiceDownloadCardTest.java +++ b/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentServiceDownloadCardTest.java @@ -31,6 +31,7 @@ import org.springframework.data.domain.PageImpl; import org.springframework.http.HttpStatus; import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.test.util.ReflectionTestUtils; import io.mosip.kernel.core.http.ResponseWrapper; import io.mosip.kernel.core.templatemanager.spi.TemplateManager; @@ -154,6 +155,7 @@ public void setup() throws Exception { Mockito.when(entityManager.createNativeQuery(Mockito.anyString(), (Class) Mockito.any())).thenReturn(query); Mockito.when(entityManager.createNativeQuery(Mockito.anyString())).thenReturn(query); Mockito.when(query.getSingleResult()).thenReturn(BigInteger.valueOf(1)); + ReflectionTestUtils.setField(residentServiceImpl, "onlineVerificationPartnerId", "partner1"); } @Test