Merge pull request #9960 from alimate/BAEL-4579-3

BAEL-4579: Disabling Tomcat URL Stream Factory
This commit is contained in:
Eric Martin 2020-08-31 22:52:11 -05:00 committed by GitHub
commit 4ef9b3398f
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);
}