From fc47d8b02e9fc67bbce0c452aefa56de33bde830 Mon Sep 17 00:00:00 2001 From: btyanagawamg Date: Fri, 3 Mar 2017 13:36:25 +0900 Subject: [PATCH] change place that variable definition #605 --- .../gfw/functionaltest/app/redirect/RedirectTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terasoluna-gfw-functionaltest-selenium/src/test/java/org/terasoluna/gfw/functionaltest/app/redirect/RedirectTest.java b/terasoluna-gfw-functionaltest-selenium/src/test/java/org/terasoluna/gfw/functionaltest/app/redirect/RedirectTest.java index c69738b5b..d686a8ef1 100644 --- a/terasoluna-gfw-functionaltest-selenium/src/test/java/org/terasoluna/gfw/functionaltest/app/redirect/RedirectTest.java +++ b/terasoluna-gfw-functionaltest-selenium/src/test/java/org/terasoluna/gfw/functionaltest/app/redirect/RedirectTest.java @@ -107,10 +107,9 @@ public void test01_03_redirectToExternalLink() { driver.findElement(By.id("btn1")).click(); - String expectedErrorMessage; - // Unlike other application servers, WebSphere Liberty Profile & WebSphere traditional wraps an unexpected exception of ServletException. // So the expected error page is different. + String expectedErrorMessage; if (apServerName == ApServerName.WEBSPHERELP || apServerName == ApServerName.WEBSPHERETR) { expectedErrorMessage = "System Error..."; } else {