Skip to content

Commit cc8820c

Browse files
committed
Improve SSL-Configuration
1 parent ab42f4a commit cc8820c

File tree

1 file changed

+4
-3
lines changed
  • okhttp-spring-boot-autoconfigure/src/test/java/io/freefair/spring/okhttp/ssl

1 file changed

+4
-3
lines changed

okhttp-spring-boot-autoconfigure/src/test/java/io/freefair/spring/okhttp/ssl/SslBundleTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
import org.junit.jupiter.api.Test;
44
import org.springframework.beans.factory.annotation.Autowired;
55
import org.springframework.boot.autoconfigure.SpringBootApplication;
6-
import org.springframework.boot.ssl.*;
6+
import org.springframework.boot.restclient.RestTemplateBuilder;
7+
import org.springframework.boot.ssl.SslBundle;
8+
import org.springframework.boot.ssl.SslBundles;
79
import org.springframework.boot.test.context.SpringBootTest;
810
import org.springframework.boot.test.web.server.LocalServerPort;
9-
import org.springframework.boot.web.client.RestTemplateBuilder;
1011
import org.springframework.context.annotation.Bean;
1112
import org.springframework.context.annotation.Configuration;
1213
import org.springframework.web.bind.annotation.GetMapping;
1314
import org.springframework.web.bind.annotation.RestController;
1415
import org.springframework.web.client.RestTemplate;
1516

16-
import javax.net.ssl.*;
17+
import javax.net.ssl.HostnameVerifier;
1718

1819
import static org.assertj.core.api.Assertions.assertThat;
1920

0 commit comments

Comments
 (0)