Assign a test to an appropriate test category
authorpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Wed, 2 Nov 2011 11:41:50 +0000 (11:41 +0000)
committerpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Wed, 2 Nov 2011 11:41:50 +0000 (11:41 +0000)
git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@4704 e3abac25-378b-4346-85de-24260fe3988d

testsrc/compbio/data/msa/CategoryTester.java

index 24abf13..575ac16 100644 (file)
@@ -9,6 +9,7 @@ import org.testng.Assert;
 import org.testng.annotations.BeforeTest;\r
 import org.testng.annotations.Test;\r
 \r
+import compbio.metadata.AllTestSuit;\r
 import compbio.ws.client.Jws2Client;\r
 import compbio.ws.client.Services;\r
 \r
@@ -17,7 +18,7 @@ public class CategoryTester {
        // test category membership from string constants\r
        compbio.data.msa.RegistryWS registry = null;\r
 \r
-       @BeforeTest\r
+       @BeforeTest(groups = AllTestSuit.test_group_webservices)\r
        public void setupTest() {\r
                try {\r
                        /*\r
@@ -35,7 +36,12 @@ public class CategoryTester {
                }\r
 \r
        }\r
-       @Test\r
+\r
+       /*\r
+        * This test will FAIL unless a connection to a running JABAWS web server is\r
+        * made!\r
+        */\r
+       @Test(groups = AllTestSuit.test_group_webservices)\r
        public void categoryTest() {\r
                Set<Category> servicecategories = registry.getServiceCategories();\r
 \r