Skip to content

Commit 1276360

Browse files
committed
DEVX-658: updating okhttp to v5
1 parent e922752 commit 1276360

File tree

1 file changed

+3
-3
lines changed
  • commercetools/commercetools-okhttp-client5/src/jmh/java/com/commercetools/http/okhttp4

1 file changed

+3
-3
lines changed

commercetools/commercetools-okhttp-client5/src/jmh/java/com/commercetools/http/okhttp4/UnzipBenchmark.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public class UnzipBenchmark {
1919

2020
@State(Scope.Benchmark)
2121
public static class InterceptorState {
22-
private CtOkHttp4Client.UnzippingInterceptor interceptor;
22+
private CtOkHttp5Client.UnzippingInterceptor interceptor;
2323

2424
@Setup(Level.Trial)
2525
public void init() {
26-
interceptor = new CtOkHttp4Client.UnzippingInterceptor();
26+
interceptor = new CtOkHttp5Client.UnzippingInterceptor();
2727
printUsedMemory();
2828

2929
}
@@ -60,7 +60,7 @@ public void unzip(InterceptorState state) throws IOException {
6060
Assertions.assertThat(unzipped.body().source().isOpen()).isTrue();
6161
Assertions.assertThat(inputStream.available()).isEqualTo(31);
6262

63-
ApiHttpResponse<byte[]> response = CtOkHttp4Client.toResponse(unzipped);
63+
ApiHttpResponse<byte[]> response = CtOkHttp5Client.toResponse(unzipped);
6464

6565
Assertions.assertThat(gzipped.body().source().isOpen()).isFalse();
6666
Assertions.assertThat(unzipped.body().source().isOpen()).isFalse();

0 commit comments

Comments
 (0)