Changing the new test frame work to testng

revert-70aa11f8
Geeth Munasinghe 10 years ago
parent eb734a4b14
commit 33812ec50f

@ -120,9 +120,8 @@
<version>${jboss-transaction-api.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</dependency>
</dependencies>

@ -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");
}
}

@ -137,17 +137,26 @@
<!--Test dependencies-->
<!--
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12-beta-3</version>
<scope>test</scope>
</dependency>
-->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<properties>
<testng.version>6.1.1</testng.version>
<carbon.kernel.version>4.3.0-SNAPSHOT</carbon.kernel.version>
<carbon.platform.version>4.3.0-SNAPSHOT</carbon.platform.version>
<carbon.p2.plugin.version>1.5.4</carbon.p2.plugin.version>

Loading…
Cancel
Save