X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Fjabaws%2FMinJabawsClientTests.java;h=6af831fecee531f91b431eba73c818c80b1db5fd;hb=97264690f394f98cf13cd1d834a53e8956fb1b0e;hp=fe92b5ae1e7d2a273945800954590286f2d2aa1a;hpb=52288466dd1e71946a06fd1e6ea15fa8e652c693;p=jalview.git diff --git a/test/jalview/ws/jabaws/MinJabawsClientTests.java b/test/jalview/ws/jabaws/MinJabawsClientTests.java index fe92b5a..6af831f 100644 --- a/test/jalview/ws/jabaws/MinJabawsClientTests.java +++ b/test/jalview/ws/jabaws/MinJabawsClientTests.java @@ -1,11 +1,34 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.ws.jabaws; import static org.testng.AssertJUnit.assertEquals; +import jalview.gui.JvOptionPane; + import java.util.ArrayList; import java.util.List; import org.testng.Assert; +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import compbio.data.msa.MsaWS; @@ -18,6 +41,13 @@ import compbio.ws.client.Services; public class MinJabawsClientTests { + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + /** * simple test for the benefit of JAL-1338 * @@ -36,6 +66,11 @@ public class MinJabawsClientTests MsaWS msaservice = null; for (Services service : registry.getSupportedServices()) { + if (service == null) + { + // the 'unsupported service' + continue; + } if (service.equals(Services.ClustalOWS)) { msaservice = (MsaWS) Jws2Client.connect(url, service);