From: Aron Roberts Date: Thu, 10 Dec 2009 03:43:11 +0000 (+0000) Subject: NOJIRA: readList-type test methods in client tests have a potential dependency on... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=3a78cdf4bb8150e1f578a457c354c85c0685b876;p=tmp%2Fjakarta-migration.git NOJIRA: readList-type test methods in client tests have a potential dependency on the createList method, if and when these tests check contents of lists returned and not just status codes of responses. --- diff --git a/services/intake/client/src/test/java/org/collectionspace/services/client/test/IntakeServiceTest.java b/services/intake/client/src/test/java/org/collectionspace/services/client/test/IntakeServiceTest.java index c9fd9b057..e929092d8 100644 --- a/services/intake/client/src/test/java/org/collectionspace/services/client/test/IntakeServiceTest.java +++ b/services/intake/client/src/test/java/org/collectionspace/services/client/test/IntakeServiceTest.java @@ -273,7 +273,7 @@ public class IntakeServiceTest extends AbstractServiceTest { // Success outcomes @Override @Test(dataProvider="testName", dataProviderClass=AbstractServiceTest.class, - dependsOnMethods = {"read"}) + dependsOnMethods = {"createList", "read"}) public void readList(String testName) throws Exception { // Perform setup. diff --git a/services/vocabulary/client/src/test/java/org/collectionspace/services/client/test/VocabularyServiceTest.java b/services/vocabulary/client/src/test/java/org/collectionspace/services/client/test/VocabularyServiceTest.java index a32dacd2b..4db245618 100644 --- a/services/vocabulary/client/src/test/java/org/collectionspace/services/client/test/VocabularyServiceTest.java +++ b/services/vocabulary/client/src/test/java/org/collectionspace/services/client/test/VocabularyServiceTest.java @@ -433,7 +433,7 @@ public class VocabularyServiceTest extends AbstractServiceTest { @Override @Test(dataProvider="testName", dataProviderClass=AbstractServiceTest.class, - dependsOnMethods = {"read"}) + dependsOnMethods = {"createList", "read"}) public void readList(String testName) throws Exception { // Perform setup. @@ -473,7 +473,7 @@ public class VocabularyServiceTest extends AbstractServiceTest { } } - @Test(dependsOnMethods = {"readItem"}) + @Test(dependsOnMethods = {"createList", "readItem"}) public void readItemList() { readItemList(knownResourceId); }