JAL-2136 fixed failing unit test for Phyre2Client
[jalview.git] / test / jalview / ws / phyre2 / Phyre2ClientTest.java
index 811ddd0..1e9cf70 100644 (file)
@@ -23,7 +23,8 @@ public class Phyre2ClientTest
   @Test(groups = { "Functional" })
   public void getPhyre2FastaMappingTest()
   {
-    String phyre2ModelFile = "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.pdb";
+    String phyre2ModelFile = "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.pdb";
+    String fastaMappingFile = "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.fasta";
 
     SequenceI testSeq = new Sequence(
             "FER_CAPAN",
@@ -186,6 +187,7 @@ public class Phyre2ClientTest
     {
       structureFile = new JmolParser(phyre2ModelFile, DataSourceType.FILE);
       phyre2Client = new Phyre2Client(structureFile);
+      phyre2Client.setFastaMappingFile(fastaMappingFile);
     } catch (IOException e1)
     {
       e1.printStackTrace();
@@ -212,6 +214,7 @@ public class Phyre2ClientTest
   public void getPhyre2FastaMappingTest2()
   {
     String phyre2ModelFile = "examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.pdb";
+    String fastaMappingFile = "examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.fasta";
 
     SequenceI testSeq = new Sequence(
             "FER_CAPAN",
@@ -354,6 +357,7 @@ public class Phyre2ClientTest
     {
       structureFile = new JmolParser(phyre2ModelFile, DataSourceType.FILE);
       phyre2Client = new Phyre2Client(structureFile);
+      phyre2Client.setFastaMappingFile(fastaMappingFile);
     } catch (IOException e1)
     {
       e1.printStackTrace();
@@ -388,6 +392,10 @@ public class Phyre2ClientTest
     // Test entry set
     for (int key : expectedMapping.keySet())
     {
+      System.out.println(key + " ---> [" + expectedMapping.get(key)[0]
+              + ", " + expectedMapping.get(key)[1] + "] = ["
+              + actualMapping.get(key)[0] + ", "
+              + actualMapping.get(key)[1] + "]");
       Assert.assertTrue(Arrays.equals(expectedMapping.get(key),
               actualMapping.get(key)));
     }