From: pvtroshin Date: Wed, 2 Nov 2011 11:56:11 +0000 (+0000) Subject: A few minor changes to the test X-Git-Url: http://source.jalview.org/gitweb/?p=jabaws.git;a=commitdiff_plain;h=4abf762eaae51557c052fd10ca03a95894590002;hp=03ff2bfa7fbd0350dfd7c2e7379ab538e016827c A few minor changes to the test git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@4706 e3abac25-378b-4346-85de-24260fe3988d --- diff --git a/testsrc/compbio/data/msa/CategoryTester.java b/testsrc/compbio/data/msa/CategoryTester.java index 575ac16..00a93f4 100644 --- a/testsrc/compbio/data/msa/CategoryTester.java +++ b/testsrc/compbio/data/msa/CategoryTester.java @@ -12,11 +12,12 @@ import org.testng.annotations.Test; import compbio.metadata.AllTestSuit; import compbio.ws.client.Jws2Client; import compbio.ws.client.Services; +import compbio.ws.client.WSTesterTester; public class CategoryTester { // test category membership from string constants - compbio.data.msa.RegistryWS registry = null; + RegistryWS registry = null; @BeforeTest(groups = AllTestSuit.test_group_webservices) public void setupTest() { @@ -25,8 +26,8 @@ public class CategoryTester { * registry = Jws2Client .connectToRegistry( * "http://webserv1.cluster.lifesci.dundee.ac.uk:8089/jaba"); */ - registry = Jws2Client - .connectToRegistry("http://localhost:8080/jabaws"); + registry = Jws2Client.connectToRegistry(WSTesterTester.SERVER); + } catch (ConnectException e) { e.printStackTrace(); Assert.fail(e.getMessage()); @@ -62,8 +63,7 @@ public class CategoryTester { } } if (!found) { - throw new Error( - "Could not match any category to one of the given category constants"); + Assert.fail("Could not match any category to one of the given category constants"); } }