From e41286993f3f1dd86485549da87061d97e487fc2 Mon Sep 17 00:00:00 2001 From: Maxime Sinclair Date: Wed, 10 Jul 2013 17:28:09 +0200 Subject: [PATCH] [TASK] No more used method getServerUrl suppressed --- .../plantuml/servlet/TestUtils.java | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/test/java/net/sourceforge/plantuml/servlet/TestUtils.java b/src/test/java/net/sourceforge/plantuml/servlet/TestUtils.java index 9205855..5a2056d 100644 --- a/src/test/java/net/sourceforge/plantuml/servlet/TestUtils.java +++ b/src/test/java/net/sourceforge/plantuml/servlet/TestUtils.java @@ -7,32 +7,20 @@ import com.meterware.httpunit.*; */ public class TestUtils { - /** - * Return the URL of the PlantUMLServlet, deployed on the testing web server in the following form - * http://server/contextroot/ Note the trailing slash (/) - * - * @return the URL - */ - public static String getServerUrl() { - return "http://localhost/plantuml/"; - } - /** * Try getting a response for the given Conversation and Request show an error message if a 404 error appears * - * @param conversation - * - the conversation to use + * @param conversation The conversation to use * @param request - * @return the response - * @throws an - * Exception if getting the response fails + * @return The response + * @throws nfe If getting the response fails */ public static WebResponse tryGetResponse(WebConversation conversation, WebRequest request) throws Exception { WebResponse response = null; try { response = conversation.getResponse(request); } catch (HttpNotFoundException nfe) { - System.err.println("The URL '" + request.getURL() + "' is not active any more"); + System.err.println("The URL '" + request.getURL() + "' is no more active"); throw nfe; } return response;