|
29 | 29 | import okhttp3.mockwebserver.MockResponse;
|
30 | 30 | import okhttp3.mockwebserver.MockWebServer;
|
31 | 31 | import org.junit.jupiter.api.AfterEach;
|
32 |
| -import org.junit.jupiter.api.BeforeAll; |
33 | 32 | import org.junit.jupiter.api.BeforeEach;
|
34 | 33 | import org.junit.jupiter.api.Test;
|
35 | 34 | import org.mockito.ArgumentCaptor;
|
36 |
| -import reactor.blockhound.BlockHound; |
37 | 35 | import reactor.util.context.Context;
|
38 | 36 |
|
39 | 37 | import org.springframework.http.HttpHeaders;
|
@@ -89,23 +87,6 @@ public class ServletOAuth2AuthorizedClientExchangeFilterFunctionITests {
|
89 | 87 |
|
90 | 88 | private MockHttpServletResponse response;
|
91 | 89 |
|
92 |
| - @BeforeAll |
93 |
| - public static void setUpBlockingChecks() { |
94 |
| - // IMPORTANT: |
95 |
| - // Before enabling BlockHound, we need to white-list |
96 |
| - // `java.lang.Class.getPackage()`. |
97 |
| - // When the JVM loads `java.lang.Package.getSystemPackage()`, it attempts to |
98 |
| - // `java.lang.Package.loadManifest()` which is blocking I/O and triggers |
99 |
| - // BlockHound to error. |
100 |
| - // NOTE: This is an issue with JDK 8. It's been tested on JDK 10 and works fine |
101 |
| - // w/o this white-list. |
102 |
| - // @formatter:off |
103 |
| - BlockHound.builder() |
104 |
| - .allowBlockingCallsInside(Class.class.getName(), "getPackage") |
105 |
| - .install(); |
106 |
| - // @formatter:on |
107 |
| - } |
108 |
| - |
109 | 90 | @BeforeEach
|
110 | 91 | public void setUp() throws Exception {
|
111 | 92 | this.clientRegistrationRepository = mock(ClientRegistrationRepository.class);
|
|
0 commit comments