From: Jim Procter Date: Thu, 2 Aug 2018 10:09:14 +0000 (+0100) Subject: JAL-3070 clearer test failed error message for REST service tests X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=54acdaaab191e1a88246892645552d0811b5c552;p=jalview.git JAL-3070 clearer test failed error message for REST service tests --- diff --git a/test/jalview/ws/rest/ShmmrRSBSService.java b/test/jalview/ws/rest/ShmmrRSBSService.java index 709f2c5..d9595d5 100644 --- a/test/jalview/ws/rest/ShmmrRSBSService.java +++ b/test/jalview/ws/rest/ShmmrRSBSService.java @@ -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());