JAL-3829 allow multiple URL mocks and include P01308 in 3d-beacons mocks
[jalview.git] / test / jalview / fts / service / pdb / PDBFTSRestClientTest.java
index bbd45aa..e9505aa 100644 (file)
@@ -93,6 +93,8 @@ public class PDBFTSRestClientTest
     {
       e1.printStackTrace();
     }
+    System.out.println("wantedFields >>" + wantedFields);
+
 
     FTSRestRequest request = new FTSRestRequest();
     request.setAllowEmptySeq(false);
@@ -196,6 +198,7 @@ public class PDBFTSRestClientTest
   @Test(groups = { "External" }, expectedExceptions = Exception.class)
   public void testForExpectedRuntimeException() throws Exception
   {
+    // JBPNote: looks like this test fails for no good reason - what exception was supposed to be raised ?
     List<FTSDataColumnI> wantedFields = new ArrayList<FTSDataColumnI>();
     wantedFields.add(PDBFTSRestClient.getInstance()
             .getDataColumnByNameOrCode("pdb_id"));
@@ -208,6 +211,7 @@ public class PDBFTSRestClientTest
   }
 
   // JBP: Is this actually external ? Looks like it is mocked
+  // JBP looks like the mock is not up to date for this test
   @Test(groups = { "External" })
   public void parsePDBJsonResponseTest()
   {
@@ -246,6 +250,7 @@ public class PDBFTSRestClientTest
     assertTrue(response.getSearchSummary() != null);
     assertTrue(response.getNumberOfItemsFound() == 931);
     assertTrue(response.getSearchSummary().size() == 14);
+    System.out.println("Search summary : " + response.getSearchSummary());
   }
 
   @Test(groups = { "Functional" })