diff --git a/mock-certify-plugin/src/main/java/io.mosip.certify.mock.integration/service/MockVCIssuancePlugin.java b/mock-certify-plugin/src/main/java/io.mosip.certify.mock.integration/service/MockVCIssuancePlugin.java index 2f42503..22b7aef 100644 --- a/mock-certify-plugin/src/main/java/io.mosip.certify.mock.integration/service/MockVCIssuancePlugin.java +++ b/mock-certify-plugin/src/main/java/io.mosip.certify.mock.integration/service/MockVCIssuancePlugin.java @@ -127,7 +127,7 @@ private JsonLDObject buildJsonLDWithLDProof(String accessTokenHash) Map verCredJsonObject = new HashMap<>(); verCredJsonObject.put("@context", vcCredentialContexts); - verCredJsonObject.put("type", Arrays.asList("VerifiableCredential", "MOSIPVerifiableCredential")); + verCredJsonObject.put("type", Arrays.asList("VerifiableCredential", "MockVerifiableCredential")); verCredJsonObject.put("id", "urn:uuid:3978344f-8596-4c3a-a978-8fcaba3903c5"); verCredJsonObject.put("issuer", "did:example:123456789"); verCredJsonObject.put("issuanceDate", getUTCDateTime()); @@ -241,4 +241,4 @@ public VCResult getVerifiableCredential(VCRequestDto vcRequestDto, Strin public OIDCTransaction getUserInfoTransaction(String accessTokenHash) { return cacheManager.getCache(USERINFO_CACHE).get(accessTokenHash, OIDCTransaction.class); } -} \ No newline at end of file +} diff --git a/mock-certify-plugin/src/test/java/io/mosip/certify/mock/integration/service/MockVCIssuancePluginTest.java b/mock-certify-plugin/src/test/java/io/mosip/certify/mock/integration/service/MockVCIssuancePluginTest.java index 1164642..f7bfbe4 100644 --- a/mock-certify-plugin/src/test/java/io/mosip/certify/mock/integration/service/MockVCIssuancePluginTest.java +++ b/mock-certify-plugin/src/test/java/io/mosip/certify/mock/integration/service/MockVCIssuancePluginTest.java @@ -63,7 +63,7 @@ public void setUp() { vcRequestDto.setFormat("ldp_vc"); vcRequestDto.setContext(Arrays.asList("context1","context2")); - vcRequestDto.setType(Arrays.asList("VerifiableCredential")); + vcRequestDto.setType(Arrays.asList("VerifiableCredential", "MockVerifiableCredential")); vcRequestDto.setCredentialSubject(Map.of("subject1","subject1","subject2","subject2")); Mockito.when(cacheManager.getCache(Mockito.anyString())).thenReturn(cache);