From 05cffeb1e77d123ba112e8a9515bf75f7e536c22 Mon Sep 17 00:00:00 2001 From: GDLMadushanka Date: Wed, 28 Mar 2018 10:07:40 +0530 Subject: [PATCH] fix --- .../provider/mqtt/CarbonContextInitializationUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt/src/test/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/mqtt/CarbonContextInitializationUtil.java b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt/src/test/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/mqtt/CarbonContextInitializationUtil.java index 8ddf3dea629..b69482751ac 100644 --- a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt/src/test/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/mqtt/CarbonContextInitializationUtil.java +++ b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt/src/test/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/mqtt/CarbonContextInitializationUtil.java @@ -29,7 +29,7 @@ public class CarbonContextInitializationUtil { private final static String CARBON_HOME = "carbon.home"; public static void initializeCarbonContext() { - if (System.getProperty(CARBON_HOME) == null) { + if (System.getProperty("carbon.home") == null) { File file = new File("src/test/resources"); if (file.exists()) { System.setProperty(CARBON_HOME, file.getAbsolutePath());