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/?a=commitdiff_plain;h=4abf762eaae51557c052fd10ca03a95894590002;p=jabaws.git 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"); } }