From 42f15c831cce44e60382c0f22dbd09ee09ea3e38 Mon Sep 17 00:00:00 2001 From: JeethJJ Date: Thu, 29 Aug 2024 12:12:37 +0530 Subject: [PATCH] Address comments. --- .../carbon/email/mgt/store/InMemoryBasedTemplateManager.java | 2 +- .../org/wso2/carbon/email/mgt/ApplicationEmailTemplateTest.java | 1 - .../wso2/carbon/email/mgt/OrganizationEmailTemplateTest.java | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/components/email-mgt/org.wso2.carbon.email.mgt/src/main/java/org/wso2/carbon/email/mgt/store/InMemoryBasedTemplateManager.java b/components/email-mgt/org.wso2.carbon.email.mgt/src/main/java/org/wso2/carbon/email/mgt/store/InMemoryBasedTemplateManager.java index c565f741..5b8633ef 100644 --- a/components/email-mgt/org.wso2.carbon.email.mgt/src/main/java/org/wso2/carbon/email/mgt/store/InMemoryBasedTemplateManager.java +++ b/components/email-mgt/org.wso2.carbon.email.mgt/src/main/java/org/wso2/carbon/email/mgt/store/InMemoryBasedTemplateManager.java @@ -38,7 +38,7 @@ * Templates are stored in nested maps, where the outer map is keyed by the template display name and the inner map * is keyed by locale. This allows for easy retrieval of localized templates. * This class used by {@link DefaultTemplateManager} as a fallback mechanism. - * This class only supports for tenant specific notification templates. + * This class keeping set of templates that will be commonly used as default templates across all the tenants. */ public class InMemoryBasedTemplateManager implements TemplatePersistenceManager { diff --git a/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/ApplicationEmailTemplateTest.java b/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/ApplicationEmailTemplateTest.java index bc67216b..999fa749 100644 --- a/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/ApplicationEmailTemplateTest.java +++ b/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/ApplicationEmailTemplateTest.java @@ -472,7 +472,6 @@ private void mockRegistryResource(String notificationChannel, String displayName when(resourceMgtService.getIdentityResource(Matchers.anyString(), Matchers.anyString(), Matchers.anyString())) .thenReturn(resource); - when(resourceMgtService.isResourceExists(Matchers.anyString(), Matchers.anyString())).thenReturn(true); // Mock Resource properties. when(resource.getProperty(I18nMgtConstants.TEMPLATE_TYPE_DISPLAY_NAME)).thenReturn(displayName); diff --git a/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/OrganizationEmailTemplateTest.java b/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/OrganizationEmailTemplateTest.java index b671bf25..6c718b98 100644 --- a/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/OrganizationEmailTemplateTest.java +++ b/components/email-mgt/org.wso2.carbon.email.mgt/src/test/java/org/wso2/carbon/email/mgt/OrganizationEmailTemplateTest.java @@ -406,7 +406,6 @@ private void mockRegistryResource(String notificationChannel, String displayName when(resourceMgtService.getIdentityResource(Matchers.anyString(), Matchers.anyString(), Matchers.anyString())) .thenReturn(resource); - when(resourceMgtService.isResourceExists(Matchers.anyString(), Matchers.anyString())).thenReturn(true); // Mock Resource properties. when(resource.getProperty(I18nMgtConstants.TEMPLATE_TYPE_DISPLAY_NAME)).thenReturn(displayName);