From 54acdaaab191e1a88246892645552d0811b5c552 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 2 Aug 2018 11:09:14 +0100 Subject: [PATCH] JAL-3070 clearer test failed error message for REST service tests --- test/jalview/ws/rest/ShmmrRSBSService.java | 6 ++++++ 1 file changed, 6 insertions(+) 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()); -- 1.7.10.2