import compbio.metadata.AllTestSuit;\r
import compbio.ws.client.Jws2Client;\r
import compbio.ws.client.Services;\r
+import compbio.ws.client.WSTesterTester;\r
\r
public class CategoryTester {\r
\r
// test category membership from string constants\r
- compbio.data.msa.RegistryWS registry = null;\r
+ RegistryWS registry = null;\r
\r
@BeforeTest(groups = AllTestSuit.test_group_webservices)\r
public void setupTest() {\r
* registry = Jws2Client .connectToRegistry(\r
* "http://webserv1.cluster.lifesci.dundee.ac.uk:8089/jaba");\r
*/\r
- registry = Jws2Client\r
- .connectToRegistry("http://localhost:8080/jabaws");\r
+ registry = Jws2Client.connectToRegistry(WSTesterTester.SERVER);\r
+\r
} catch (ConnectException e) {\r
e.printStackTrace();\r
Assert.fail(e.getMessage());\r
}\r
}\r
if (!found) {\r
- throw new Error(\r
- "Could not match any category to one of the given category constants");\r
+ Assert.fail("Could not match any category to one of the given category constants");\r
}\r
}\r
\r