Skip to content

Commit c6283d8

Browse files
committed
Rename the inprocess test property
This renames the test property back to `spring.grpc.test.inprocess` from `spring.test.grpc.inprocess`. Signed-off-by: onobc <[email protected]>
1 parent 96aaa2d commit c6283d8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

spring-grpc-test-spring-boot-autoconfigure/src/main/java/org/springframework/boot/grpc/test/autoconfigure/AutoConfigureInProcessTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@Documented
4242
@Inherited
4343
@ImportAutoConfiguration
44-
@PropertyMapping("spring.test.grpc.inprocess")
44+
@PropertyMapping("spring.grpc.test.inprocess")
4545
public @interface AutoConfigureInProcessTransport {
4646

4747
/**

spring-grpc-test-spring-boot-autoconfigure/src/main/java/org/springframework/boot/grpc/test/autoconfigure/InProcessTestAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
@AutoConfiguration(before = { GrpcServerFactoryAutoConfiguration.class, GrpcClientAutoConfiguration.class })
6464
@ConditionalOnClass({ InProcessServerBuilder.class, InProcessChannelBuilder.class, InProcessGrpcServerFactory.class,
6565
InProcessGrpcChannelFactory.class })
66-
@ConditionalOnBooleanProperty("spring.test.grpc.inprocess.enabled")
66+
@ConditionalOnBooleanProperty("spring.grpc.test.inprocess.enabled")
6767
public final class InProcessTestAutoConfiguration {
6868

6969
private final String address = InProcessServerBuilder.generateName();

spring-grpc-test-spring-boot-autoconfigure/src/main/java/org/springframework/boot/grpc/test/autoconfigure/InProcessTransportContextCustomizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*/
4040
class InProcessTransportContextCustomizerFactory implements ContextCustomizerFactory {
4141

42-
static final String ENABLED_PROPERTY = "spring.test.grpc.inprocess.enabled";
42+
static final String ENABLED_PROPERTY = "spring.grpc.test.inprocess.enabled";
4343

4444
@Override
4545
public ContextCustomizer createContextCustomizer(Class<?> testClass,

spring-grpc-test-spring-boot-autoconfigure/src/test/java/org/springframework/boot/grpc/test/autoconfigure/InProcessTestAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private ApplicationContextRunner contextRunner() {
6262
@Test
6363
void whenTestInProcessEnabledPropIsSetToTrueDoesAutoConfigureBeans() {
6464
this.contextRunner()
65-
.withPropertyValues("spring.test.grpc.inprocess.enabled=true", "spring.grpc.server.inprocess.name=foo",
65+
.withPropertyValues("spring.grpc.test.inprocess.enabled=true", "spring.grpc.server.inprocess.name=foo",
6666
"spring.grpc.server.port=0")
6767
.run((context) -> {
6868
assertThat(context).getBeans(GrpcServerFactory.class)
@@ -87,7 +87,7 @@ void whenTestInProcessEnabledPropIsNotSetDoesNotAutoConfigureBeans() {
8787
@Test
8888
void whenTestInProcessEnabledPropIsSetToFalseDoesNotAutoConfigureBeans() {
8989
this.contextRunner()
90-
.withPropertyValues("spring.test.grpc.inprocess.enabled=false", "spring.grpc.server.inprocess.name=foo",
90+
.withPropertyValues("spring.grpc.test.inprocess.enabled=false", "spring.grpc.server.inprocess.name=foo",
9191
"spring.grpc.server.port=0")
9292
.run((context) -> {
9393
assertThat(context).getBeans(GrpcServerFactory.class)

0 commit comments

Comments
 (0)