Disabling Tomcat URL Stream Factory
This commit is contained in:
parent
d237c52a1f
commit
026e3c511e
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue