diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml
index aa60bc7c1..0490197ae 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml
@@ -120,9 +120,8 @@
${jboss-transaction-api.version}
- junit
- junit
- test
+ org.testng
+ testng
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/DeviceManagementTestCase.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/DeviceManagementTestCase.java
index dae28fdfe..e72afb3c2 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/DeviceManagementTestCase.java
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/DeviceManagementTestCase.java
@@ -20,18 +20,18 @@ package org.wso2.carbon.device.mgt.core;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.junit.Test;
+import org.testng.Assert;
+import org.testng.annotations.Test;
-import static org.junit.Assert.assertEquals;
public class DeviceManagementTestCase {
private static final Log log = LogFactory.getLog(DeviceManagementTestCase.class);
- @Test
+ @Test(groups = "device.mgt.test", description = "Testing the first test case with testng.")
public void setUp() throws Exception {
log.info("Testing started.");
- assertEquals("A", "A");
+ Assert.assertEquals("A", "A");
}
}
diff --git a/pom.xml b/pom.xml
index 30b35934b..230c223dc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,17 +137,26 @@
+
+
+
+ org.testng
+ testng
+ ${testng.version}
+
+ 6.1.1
4.3.0-SNAPSHOT
4.3.0-SNAPSHOT
1.5.4