Browse files

fixed testng issue, using dependsOnGroups instead of dependsOnMethods

  • Loading branch information...
1 parent 4124901 commit 09d815daf1e77c7d4e32ef1ecd0e737fc025e5c3 @reikje reikje committed Jan 10, 2011
View
2 src/test/java/com/trifork/riak/BatchPushLotsOfDataTest.java
@@ -9,7 +9,7 @@
import com.google.protobuf.ByteString;
import org.testng.annotations.Test;
-@Test(groups = "db", dependsOnMethods = "testIsRunning", sequential = true)
+@Test(groups = "unit", dependsOnGroups = { "db-available" })
public class BatchPushLotsOfDataTest {
public void testBatchPushingLotsofData() throws InterruptedException, IOException {
View
2 src/test/java/com/trifork/riak/ListAllContentsTest.java
@@ -9,7 +9,7 @@
import com.google.protobuf.ByteString;
import org.testng.annotations.Test;
-@Test(groups = "db", dependsOnMethods = "testIsRunning", sequential = true)
+@Test(groups = "unit", dependsOnGroups = { "db-available" })
public class ListAllContentsTest {
public void testListingAllContents() throws IOException {
View
2 src/test/java/com/trifork/riak/PushLotsOfDataTest.java
@@ -9,7 +9,7 @@
import com.google.protobuf.ByteString;
import org.testng.annotations.Test;
-@Test(groups = "db", dependsOnMethods = "testIsRunning", sequential = true)
+@Test(groups = "unit", dependsOnGroups = { "db-available" })
public class PushLotsOfDataTest {
public void testPushingLotsOfData() throws IOException {
View
2 src/test/java/com/trifork/riak/RiakRunningTest.java
@@ -11,7 +11,7 @@
*
* @author reiks, Jan 5, 2011
*/
-@Test(groups = "db", sequential = true)
+@Test(groups = "db-available")
public class RiakRunningTest {
public void testIsRunning() {
View
2 src/test/resources/testng.xml
@@ -6,7 +6,7 @@
<groups>
<run>
<include name="unit" />
- <exclude name="db" />
+ <include name="db-available" />
</run>
</groups>
<packages>

0 comments on commit 09d815d

Please sign in to comment.