Skip to content

Commit e12ae99

Browse files
committed
Merge branch '3.3.x' into 3.4.x
Closes gh-44261
2 parents 015649a + 2e00552 commit e12ae99

File tree

9 files changed

+35
-15
lines changed

9 files changed

+35
-15
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/test/MockKeyStoreSpi.java renamed to spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/ssl/MockKeyStoreSpi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.embedded.test;
17+
package org.springframework.boot.testsupport.ssl;
1818

1919
import java.io.InputStream;
2020
import java.io.OutputStream;

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/test/MockPkcs11Security.java renamed to spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/ssl/MockPkcs11Security.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.embedded.test;
17+
package org.springframework.boot.testsupport.ssl;
1818

1919
import java.lang.annotation.Retention;
2020
import java.lang.annotation.RetentionPolicy;

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/test/MockPkcs11SecurityProvider.java renamed to spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/ssl/MockPkcs11SecurityProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.embedded.test;
17+
package org.springframework.boot.testsupport.ssl;
1818

1919
import java.security.Provider;
2020

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.embedded.test;
17+
package org.springframework.boot.testsupport.ssl;
1818

1919
import java.security.Security;
2020

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2012-2025 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+
/**
18+
* Classes to help when testing SSL-related functionality.
19+
*/
20+
package org.springframework.boot.testsupport.ssl;

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/ssl/jks/JksSslStoreBundleTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
2525
import org.junit.jupiter.api.Test;
2626

2727
import org.springframework.boot.io.ApplicationResourceLoader;
28-
import org.springframework.boot.web.embedded.test.MockPkcs11Security;
28+
import org.springframework.boot.testsupport.ssl.MockPkcs11Security;
2929
import org.springframework.core.io.DefaultResourceLoader;
3030
import org.springframework.core.io.Resource;
3131
import org.springframework.core.io.ResourceLoader;

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/SslServerCustomizerTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,8 +31,8 @@
3131
import org.junit.jupiter.api.condition.OS;
3232

3333
import org.springframework.boot.testsupport.junit.DisabledOnOs;
34-
import org.springframework.boot.web.embedded.test.MockPkcs11Security;
35-
import org.springframework.boot.web.embedded.test.MockPkcs11SecurityProvider;
34+
import org.springframework.boot.testsupport.ssl.MockPkcs11Security;
35+
import org.springframework.boot.testsupport.ssl.MockPkcs11SecurityProvider;
3636
import org.springframework.boot.web.server.Http2;
3737
import org.springframework.boot.web.server.Ssl;
3838
import org.springframework.boot.web.server.WebServerSslBundle;

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/SslConnectorCustomizerTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,10 +28,10 @@
2828
import org.junit.jupiter.api.Test;
2929
import org.junit.jupiter.api.extension.ExtendWith;
3030

31+
import org.springframework.boot.testsupport.ssl.MockPkcs11Security;
32+
import org.springframework.boot.testsupport.ssl.MockPkcs11SecurityProvider;
3133
import org.springframework.boot.testsupport.system.OutputCaptureExtension;
3234
import org.springframework.boot.testsupport.web.servlet.DirtiesUrlFactories;
33-
import org.springframework.boot.web.embedded.test.MockPkcs11Security;
34-
import org.springframework.boot.web.embedded.test.MockPkcs11SecurityProvider;
3535
import org.springframework.boot.web.server.Ssl;
3636
import org.springframework.boot.web.server.WebServerSslBundle;
3737

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/server/WebServerSslBundleTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,8 +22,8 @@
2222
import org.springframework.boot.ssl.SslBundleKey;
2323
import org.springframework.boot.ssl.SslOptions;
2424
import org.springframework.boot.ssl.SslStoreBundle;
25-
import org.springframework.boot.web.embedded.test.MockPkcs11Security;
26-
import org.springframework.boot.web.embedded.test.MockPkcs11SecurityProvider;
25+
import org.springframework.boot.testsupport.ssl.MockPkcs11Security;
26+
import org.springframework.boot.testsupport.ssl.MockPkcs11SecurityProvider;
2727

2828
import static org.assertj.core.api.Assertions.assertThat;
2929
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;

0 commit comments

Comments
 (0)