JAL-3070 clearer test failed error message for REST service tests
authorJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:09:14 +0000 (11:09 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:09:14 +0000 (11:09 +0100)
test/jalview/ws/rest/ShmmrRSBSService.java

index 709f2c5..d9595d5 100644 (file)
@@ -127,6 +127,12 @@ public class ShmmrRSBSService
       if (!service.equals(newService))
       {
         System.err.println("Failed for service (" + desc + ").");
+        if (fromservicetostring.equals(newService.toString()))
+        {
+          System.err.println(
+                  "Description strings are equivalent: fault during RestServiceDescription.equals()");
+          return false;
+        }
         System.err.println("Original service and parsed service differ.");
         System.err.println("Original: " + fromservicetostring);
         System.err.println("Parsed  : " + newService.toString());