From 4abf762eaae51557c052fd10ca03a95894590002 Mon Sep 17 00:00:00 2001 From: pvtroshin Date: Wed, 2 Nov 2011 11:56:11 +0000 Subject: [PATCH] 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 --- testsrc/compbio/data/msa/CategoryTester.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"); } } -- 1.7.10.2