Skip to content

Commit

Permalink
fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Apr 18, 2023
1 parent 3d82c3b commit 0e92156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package io.wcm.caravan.commons.httpasyncclient.impl;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;

Expand All @@ -30,7 +29,6 @@
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.config.Registry;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager;
import org.apache.http.nio.client.HttpAsyncClient;
import org.apache.http.nio.conn.SchemeIOSessionStrategy;
Expand Down Expand Up @@ -181,7 +179,7 @@ public void testWithClientCertificate() {
Registry<SchemeIOSessionStrategy> schemeRegistry = HttpClientTestUtils.getSchemeRegistry(client);
SchemeIOSessionStrategy schemeSocketFactory = schemeRegistry.lookup("https");

assertNotEquals(schemeSocketFactory, SSLConnectionSocketFactory.getSocketFactory());
assertNotNull(schemeSocketFactory);
item.close();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class HttpClientConfigImpl extends AbstractHttpClientConfig {

@ObjectClassDefinition(name = "wcm.io Caravan HTTP Client Configuration",
description = "Allows to configure special HTTP client settings for target hosts.")
static @interface Config {
@interface Config {

/**
* Host pattern
Expand Down

0 comments on commit 0e92156

Please sign in to comment.