JAL-2326 added setup method for JvOptionPane in all Jalveiw test classes to enable...
[jalview.git] / test / jalview / ws / dbsources / XfamFetcherTest.java
index ce4d1bc..2f28484 100644 (file)
 package jalview.ws.dbsources;
 
 import jalview.datamodel.AlignmentI;
+import jalview.gui.JvOptionPane;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
 public class XfamFetcherTest
 {
-  @Test(groups = { "network" })
+
+  @BeforeClass(alwaysRun = true)
+  public void setUpJvOptionPane()
+  {
+    JvOptionPane.setInteractiveMode(false);
+    JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+  }
+
+  @Test(groups = { "External" })
   public void testRfamSeed() throws Exception
   {
     // RfamFull rff = new RfamFull();
@@ -41,7 +51,7 @@ public class XfamFetcherTest
                     + " didn't contain more than one sequence.");
   }
 
-  @Test(groups = { "network" })
+  @Test(groups = { "External" })
   public void testPfamFullAndSeed() throws Exception
   {
     PfamFull pff = new PfamFull();