2626import org .apache .hc .client5 .http .impl .auth .BasicAuthCache ;
2727import org .apache .hc .client5 .http .impl .auth .BasicCredentialsProvider ;
2828import org .apache .hc .client5 .http .impl .classic .CloseableHttpClient ;
29- import org .apache .hc .client5 .http .impl .classic .CloseableHttpResponse ;
3029import org .apache .hc .client5 .http .impl .classic .HttpClientBuilder ;
3130import org .apache .hc .client5 .http .impl .io .ManagedHttpClientConnectionFactory ;
3231import org .apache .hc .client5 .http .impl .io .PoolingHttpClientConnectionManagerBuilder ;
9998 */
10099public class WebTestHelper
101100{
102-
103101 private static final Logger LOG = LogManager .getLogger (WebTestHelper .class );
104102
105103 public static final Random RANDOM = new Random ();
@@ -114,19 +112,13 @@ public class WebTestHelper
114112 private static String _contextPath = null ;
115113 public static final int MAX_LEAK_LIMIT = 0 ;
116114 public static final int GC_ATTEMPT_LIMIT = 6 ;
117- private static boolean USE_CONTAINER_RELATIVE_URL = true ;
118115 private static final Map <String , Map <String , Cookie >> savedCookies = new HashMap <>();
119116 private static final Map <String , String > savedSessionKeys = new HashMap <>();
120117 private static final Map <String , String > savedApiKeys = new HashMap <>();
121118 private static final Set <String > deletedApiKeys = new HashSet <>();
122119
123120 static { TestProperties .load (); }
124121
125- public static void setUseContainerRelativeUrl (boolean useContainerRelativeUrl )
126- {
127- USE_CONTAINER_RELATIVE_URL = useContainerRelativeUrl ;
128- }
129-
130122 /**
131123 * Save cookies to be used by HTTP requests
132124 */
@@ -229,11 +221,6 @@ public static void deleteApiKey(Connection connection, String apiKey)
229221 }
230222 }
231223
232- public static boolean isUseContainerRelativeUrl ()
233- {
234- return USE_CONTAINER_RELATIVE_URL ;
235- }
236-
237224 private static void acceptLocalhostCert () throws Exception
238225 {
239226 String keystorePassword = System .getProperty ("keystore.password" , "changeit" );
0 commit comments