Disabling Tomcat URL Stream Factory

This commit is contained in:
Ali Dehghani 2020-09-01 04:27:53 +04:30
parent d237c52a1f
commit 026e3c511e
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.baeldung.spring.cloud.ribbon.retry;
import org.apache.catalina.webresources.TomcatURLStreamHandlerFactory;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
@ -24,6 +25,7 @@ public class RibbonRetryFailureIntegrationTest {
@BeforeAll
public static void setup() {
TomcatURLStreamHandlerFactory.disable();
weatherServiceInstance1 = startApp(8021);
weatherServiceInstance2 = startApp(8022);
}

View File

@ -1,5 +1,6 @@
package com.baeldung.spring.cloud.ribbon.retry;
import org.apache.catalina.webresources.TomcatURLStreamHandlerFactory;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
@ -25,6 +26,7 @@ public class RibbonRetrySuccessIntegrationTest {
@BeforeAll
public static void setup() {
TomcatURLStreamHandlerFactory.disable();
weatherServiceInstance1 = startApp(8021);
weatherServiceInstance2 = startApp(8022);
}