|
@@ -24,7 +24,6 @@ import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
import org.apache.http.impl.client.HttpClients;
|
|
import org.apache.http.impl.client.HttpClients;
|
|
import org.apache.http.ssl.SSLContexts;
|
|
import org.apache.http.ssl.SSLContexts;
|
|
-import org.junit.jupiter.api.BeforeEach;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
import org.springframework.core.io.ClassPathResource;
|
|
@@ -43,13 +42,6 @@ import static org.assertj.core.api.Assertions.assertThatCode;
|
|
*/
|
|
*/
|
|
public class X509Tests {
|
|
public class X509Tests {
|
|
|
|
|
|
- private int port;
|
|
|
|
-
|
|
|
|
- @BeforeEach
|
|
|
|
- void setup() {
|
|
|
|
- this.port = Integer.parseInt(System.getProperty("app.httpPort", "8443"));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@Test
|
|
@Test
|
|
void notCertificateThenSslHandshakeException() {
|
|
void notCertificateThenSslHandshakeException() {
|
|
RestTemplate rest = new RestTemplate();
|
|
RestTemplate rest = new RestTemplate();
|