Skip to content
Snippets Groups Projects
Commit 366cbf4a authored by Jaemyoun's avatar Jaemyoun
Browse files

changed test annotation class

parent a5538c90
No related branches found
No related tags found
No related merge requests found
......@@ -47,22 +47,17 @@ LICENSE file.
<version>${json.version}</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.1.1</version>
<scope>test</scope>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.2.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.2.2</version>
</dependency>
</dependencies>
<properties>
......
......@@ -17,8 +17,7 @@
package com.yahoo.ycsb.db;
import static org.testng.AssertJUnit.assertEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeNoException;
import com.yahoo.ycsb.ByteIterator;
......@@ -26,11 +25,11 @@ import com.yahoo.ycsb.DBException;
import com.yahoo.ycsb.Status;
import com.yahoo.ycsb.StringByteIterator;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import org.junit.AfterClass;
import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.Test;
import java.util.HashMap;
import java.util.Iterator;
......@@ -71,7 +70,7 @@ public class RadosClientTest {
}
@BeforeClass
public void setupClass() throws DBException {
public static void setupClass() throws DBException {
radosclient = new RadosClient();
Properties p = new Properties();
......@@ -93,12 +92,12 @@ public class RadosClientTest {
}
}
@BeforeMethod
@Before
public void setUp() {
radosclient.insert(TABLE_NAME, KEY0, DATA);
}
@AfterMethod
@After
public void tearDown() {
radosclient.delete(TABLE_NAME, KEY0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment