File tree Expand file tree Collapse file tree 4 files changed +44
-4
lines changed
resources/META-INF/services Expand file tree Collapse file tree 4 files changed +44
-4
lines changed Original file line number Diff line number Diff line change 33
33
34
34
<properties >
35
35
<assertj .version>3.15.0</assertj .version>
36
+ <blockhound .version>1.0.3.RELEASE</blockhound .version>
36
37
<hikari-cp .version>3.4.2</hikari-cp .version>
37
38
<java .version>1.8</java .version>
38
39
<jsr305 .version>3.0.2</jsr305 .version>
135
136
<artifactId >reactor-test</artifactId >
136
137
<scope >test</scope >
137
138
</dependency >
139
+ <dependency >
140
+ <groupId >io.projectreactor.tools</groupId >
141
+ <artifactId >blockhound</artifactId >
142
+ <version >${blockhound.version} </version >
143
+ <scope >test</scope >
144
+ </dependency >
145
+ <dependency >
146
+ <groupId >io.projectreactor.tools</groupId >
147
+ <artifactId >blockhound-junit-platform</artifactId >
148
+ <version >${blockhound.version} </version >
149
+ <scope >test</scope >
150
+ </dependency >
138
151
<dependency >
139
152
<groupId >io.r2dbc</groupId >
140
153
<artifactId >r2dbc-spi-test</artifactId >
Original file line number Diff line number Diff line change 23
23
import io .r2dbc .spi .Result ;
24
24
import org .junit .jupiter .api .Test ;
25
25
import reactor .core .publisher .Flux ;
26
- import reactor .core .publisher .Hooks ;
27
26
import reactor .core .publisher .Mono ;
28
27
import reactor .test .StepVerifier ;
29
28
30
29
import java .nio .Buffer ;
31
30
import java .nio .ByteBuffer ;
32
31
import java .util .Optional ;
33
32
import java .util .stream .Collectors ;
34
- import java .util .stream .IntStream ;
35
33
36
34
import static org .assertj .core .api .Assertions .assertThat ;
37
35
@@ -45,8 +43,6 @@ class LobIntegrationTests extends IntegrationTestSupport {
45
43
static byte [] ALL_BYTES = new byte [-(-128 ) + 127 ];
46
44
47
45
static {
48
- Hooks .onOperatorDebug ();
49
-
50
46
for (int i = -128 ; i < 127 ; i ++) {
51
47
ALL_BYTES [-(-128 ) + i ] = (byte ) i ;
52
48
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2020 the original author or authors.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package io .r2dbc .mssql .util ;
18
+
19
+ import reactor .blockhound .BlockHound ;
20
+ import reactor .blockhound .integration .BlockHoundIntegration ;
21
+
22
+ import java .security .SecureRandom ;
23
+
24
+ public class BlockhoundExceptions implements BlockHoundIntegration {
25
+
26
+ @ Override
27
+ public void applyTo (BlockHound .Builder builder ) {
28
+ builder .allowBlockingCallsInside (SecureRandom .class .getName (), "next" );
29
+ }
30
+ }
Original file line number Diff line number Diff line change
1
+ io.r2dbc.mssql.util.BlockhoundExceptions
You can’t perform that action at this time.
0 commit comments