mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge pull request #30773 from marcwrobel
* gh-30773: Polish "Fix typos" Fix typos Closes gh-30773
This commit is contained in:
commit
111dfd8911
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -46,7 +46,7 @@ public class DynatraceProperties extends StepRegistryProperties {
|
|||||||
private String technologyType = "java";
|
private String technologyType = "java";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URI to ship metrics to. Should be used for SaaS, self managed instances or to
|
* URI to ship metrics to. Should be used for SaaS, self-managed instances or to
|
||||||
* en-route through an internal proxy.
|
* en-route through an internal proxy.
|
||||||
*/
|
*/
|
||||||
private String uri;
|
private String uri;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -50,7 +50,7 @@ public class AvailabilityStateHealthIndicator extends AbstractHealthIndicator {
|
|||||||
* @param <S> the availability state type
|
* @param <S> the availability state type
|
||||||
* @param applicationAvailability the application availability
|
* @param applicationAvailability the application availability
|
||||||
* @param stateType the availability state type
|
* @param stateType the availability state type
|
||||||
* @param statusMappings consumer used to setup the status mappings
|
* @param statusMappings consumer used to set up the status mappings
|
||||||
*/
|
*/
|
||||||
public <S extends AvailabilityState> AvailabilityStateHealthIndicator(
|
public <S extends AvailabilityState> AvailabilityStateHealthIndicator(
|
||||||
ApplicationAvailability applicationAvailability, Class<S> stateType,
|
ApplicationAvailability applicationAvailability, Class<S> stateType,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -357,7 +357,7 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
|
|||||||
/**
|
/**
|
||||||
* Create a new {@link OperationKey} instance.
|
* Create a new {@link OperationKey} instance.
|
||||||
* @param key the underlying key for the operation
|
* @param key the underlying key for the operation
|
||||||
* @param description a human readable description of the key
|
* @param description a human-readable description of the key
|
||||||
*/
|
*/
|
||||||
public OperationKey(Object key, Supplier<String> description) {
|
public OperationKey(Object key, Supplier<String> description) {
|
||||||
Assert.notNull(key, "Key must not be null");
|
Assert.notNull(key, "Key must not be null");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -225,7 +225,7 @@ public class MetricsEndpoint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A set of tags for further dimensional drilldown and their potential values.
|
* A set of tags for further dimensional drill-down and their potential values.
|
||||||
*/
|
*/
|
||||||
public static final class AvailableTag {
|
public static final class AvailableTag {
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -115,7 +115,7 @@ public class PrometheusPushGatewayManager {
|
|||||||
this.pushGateway.delete(this.job, this.groupingKey);
|
this.pushGateway.delete(this.job, this.groupingKey);
|
||||||
}
|
}
|
||||||
catch (Throwable ex) {
|
catch (Throwable ex) {
|
||||||
logger.warn("Unexpected exception thrown while deleting metrics from Promethues Pushgateway", ex);
|
logger.warn("Unexpected exception thrown while deleting metrics from Prometheus Pushgateway", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -133,7 +133,7 @@ class CassandraDriverHealthIndicatorTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void healthWithcassandraDownShouldReturnDown() {
|
void healthWithCassandraDownShouldReturnDown() {
|
||||||
CqlSession session = mock(CqlSession.class);
|
CqlSession session = mock(CqlSession.class);
|
||||||
given(session.getMetadata()).willThrow(new DriverTimeoutException("Test Exception"));
|
given(session.getMetadata()).willThrow(new DriverTimeoutException("Test Exception"));
|
||||||
CassandraDriverHealthIndicator healthIndicator = new CassandraDriverHealthIndicator(session);
|
CassandraDriverHealthIndicator healthIndicator = new CassandraDriverHealthIndicator(session);
|
||||||
|
@ -659,7 +659,7 @@ class QuartzEndpointTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void quartzJobWithSensitiveDataMapAndCustomSanitizier() throws SchedulerException {
|
void quartzJobWithSensitiveDataMapAndCustomSanitizer() throws SchedulerException {
|
||||||
JobDetail job = JobBuilder.newJob(Job.class).withIdentity("hello", "samples").usingJobData("test", "value")
|
JobDetail job = JobBuilder.newJob(Job.class).withIdentity("hello", "samples").usingJobData("test", "value")
|
||||||
.usingJobData("secret", "value").build();
|
.usingJobData("secret", "value").build();
|
||||||
mockJobs(job);
|
mockJobs(job);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -37,7 +37,7 @@ import org.springframework.http.converter.support.AllEncompassingFormHttpMessage
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link ApplicationListener} to trigger early initialization in a background thread of
|
* {@link ApplicationListener} to trigger early initialization in a background thread of
|
||||||
* time consuming tasks.
|
* time-consuming tasks.
|
||||||
* <p>
|
* <p>
|
||||||
* Set the {@link #IGNORE_BACKGROUNDPREINITIALIZER_PROPERTY_NAME} system property to
|
* Set the {@link #IGNORE_BACKGROUNDPREINITIALIZER_PROPERTY_NAME} system property to
|
||||||
* {@code true} to disable this mechanism and let such initialization happen in the
|
* {@code true} to disable this mechanism and let such initialization happen in the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -264,7 +264,7 @@ public class CassandraProperties {
|
|||||||
private DefaultConsistencyLevel serialConsistency;
|
private DefaultConsistencyLevel serialConsistency;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How many rows will be retrieved simultaneously in a single network roundtrip.
|
* How many rows will be retrieved simultaneously in a single network round-trip.
|
||||||
*/
|
*/
|
||||||
private int pageSize;
|
private int pageSize;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,8 +22,7 @@ import com.couchbase.client.java.env.ClusterEnvironment;
|
|||||||
* Callback interface that can be implemented by beans wishing to customize the
|
* Callback interface that can be implemented by beans wishing to customize the
|
||||||
* {@link ClusterEnvironment} via a
|
* {@link ClusterEnvironment} via a
|
||||||
* {@link com.couchbase.client.java.env.ClusterEnvironment.Builder
|
* {@link com.couchbase.client.java.env.ClusterEnvironment.Builder
|
||||||
* ClusterEnvironment.Builder} whilst retaining default auto-configuration.whilst
|
* ClusterEnvironment.Builder} whilst retaining default auto-configuration.
|
||||||
* retaining default auto-configuration.
|
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -32,7 +32,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||||||
public class GsonProperties {
|
public class GsonProperties {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to generate non executable JSON by prefixing the output with some special
|
* Whether to generate non-executable JSON by prefixing the output with some special
|
||||||
* text.
|
* text.
|
||||||
*/
|
*/
|
||||||
private Boolean generateNonExecutableJson;
|
private Boolean generateNonExecutableJson;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,7 +22,7 @@ import io.r2dbc.spi.ConnectionFactoryOptions.Builder;
|
|||||||
/**
|
/**
|
||||||
* Callback interface that can be implemented by beans wishing to customize the
|
* Callback interface that can be implemented by beans wishing to customize the
|
||||||
* {@link ConnectionFactoryOptions} via a {@link Builder} whilst retaining default
|
* {@link ConnectionFactoryOptions} via a {@link Builder} whilst retaining default
|
||||||
* auto-configuration.whilst retaining default auto-configuration.
|
* auto-configuration.
|
||||||
*
|
*
|
||||||
* @author Mark Paluch
|
* @author Mark Paluch
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -35,7 +35,7 @@ import org.springframework.web.multipart.support.StandardServletMultipartResolve
|
|||||||
import org.springframework.web.servlet.DispatcherServlet;
|
import org.springframework.web.servlet.DispatcherServlet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link EnableAutoConfiguration Auto-configuration} for multi-part uploads. Adds a
|
* {@link EnableAutoConfiguration Auto-configuration} for multipart uploads. Adds a
|
||||||
* {@link StandardServletMultipartResolver} if none is present, and adds a
|
* {@link StandardServletMultipartResolver} if none is present, and adds a
|
||||||
* {@link javax.servlet.MultipartConfigElement multipartConfigElement} if none is
|
* {@link javax.servlet.MultipartConfigElement multipartConfigElement} if none is
|
||||||
* otherwise defined. The {@link ServletWebServerApplicationContext} will associate the
|
* otherwise defined. The {@link ServletWebServerApplicationContext} will associate the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -32,7 +32,7 @@ import org.springframework.context.annotation.Bean;
|
|||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto configuration for WebSocket reactive server in Tomcat, Jetty or Undertow. Requires
|
* Auto-configuration for WebSocket reactive server in Tomcat, Jetty or Undertow. Requires
|
||||||
* the appropriate WebSocket modules to be on the classpath.
|
* the appropriate WebSocket modules to be on the classpath.
|
||||||
* <p>
|
* <p>
|
||||||
* If Tomcat's WebSocket support is detected on the classpath we add a customizer that
|
* If Tomcat's WebSocket support is detected on the classpath we add a customizer that
|
||||||
|
@ -1532,7 +1532,7 @@
|
|||||||
"description": "Check the change log location exists.",
|
"description": "Check the change log location exists.",
|
||||||
"defaultValue": true,
|
"defaultValue": true,
|
||||||
"deprecation": {
|
"deprecation": {
|
||||||
"reason": "Liquibase has it's own check that checks if the change log location exists making this property redundant.",
|
"reason": "Liquibase has its own check that checks if the change log location exists making this property redundant.",
|
||||||
"level": "error"
|
"level": "error"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -191,7 +191,7 @@ class ProjectGenerationRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The type of project to generate. Should match one of the advertized type that the
|
* The type of project to generate. Should match one of the advertised type that the
|
||||||
* service supports. If not set, the default is retrieved from the service metadata.
|
* service supports. If not set, the default is retrieved from the service metadata.
|
||||||
* @return the project type
|
* @return the project type
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -37,7 +37,7 @@ public abstract class CompilerAutoConfiguration {
|
|||||||
* Strategy method used to determine when compiler auto-configuration should be
|
* Strategy method used to determine when compiler auto-configuration should be
|
||||||
* applied. Defaults to always.
|
* applied. Defaults to always.
|
||||||
* @param classNode the class node
|
* @param classNode the class node
|
||||||
* @return {@code true} if the compiler should be auto configured using this class. If
|
* @return {@code true} if the compiler should be auto-configured using this class. If
|
||||||
* this method returns {@code false} no other strategy methods will be called.
|
* this method returns {@code false} no other strategy methods will be called.
|
||||||
*/
|
*/
|
||||||
public boolean matches(ClassNode classNode) {
|
public boolean matches(ClassNode classNode) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -27,7 +27,7 @@ import org.springframework.boot.buildpack.platform.io.Content;
|
|||||||
import org.springframework.boot.buildpack.platform.io.Owner;
|
import org.springframework.boot.buildpack.platform.io.Owner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An short lived builder that is created for each {@link Lifecycle} run.
|
* A short-lived builder that is created for each {@link Lifecycle} run.
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @author Scott Frederick
|
* @author Scott Frederick
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -155,7 +155,7 @@ public final class ImageReference {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return an {@link ImageReference} containing either a tag or a digest. If neither
|
* Return an {@link ImageReference} containing either a tag or a digest. If neither
|
||||||
* the digest or the tag has been defined then tag {@code latest} is used.
|
* the digest nor the tag has been defined then tag {@code latest} is used.
|
||||||
* @return the image reference in tagged or digest form
|
* @return the image reference in tagged or digest form
|
||||||
*/
|
*/
|
||||||
public ImageReference inTaggedOrDigestForm() {
|
public ImageReference inTaggedOrDigestForm() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -64,7 +64,7 @@ class BuildpackReferenceTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void hasPrefixWhenPrifixMismatchReturnsFalse() {
|
void hasPrefixWhenPrefixMismatchReturnsFalse() {
|
||||||
BuildpackReference reference = BuildpackReference.of("test");
|
BuildpackReference reference = BuildpackReference.of("test");
|
||||||
assertThat(reference.hasPrefix("st")).isFalse();
|
assertThat(reference.hasPrefix("st")).isFalse();
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -213,7 +213,7 @@ public final class Metadata {
|
|||||||
.filter((item) -> item.isOfItemType(this.itemType) && name.equals(item.getName()))
|
.filter((item) -> item.isOfItemType(this.itemType) && name.equals(item.getName()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
if (candidates.size() > 1) {
|
if (candidates.size() > 1) {
|
||||||
throw new IllegalStateException("More that one metadata item with name '" + name + "': " + candidates);
|
throw new IllegalStateException("More than one metadata item with name '" + name + "': " + candidates);
|
||||||
}
|
}
|
||||||
return (candidates.size() == 1) ? candidates.get(0) : null;
|
return (candidates.size() == 1) ? candidates.get(0) : null;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -83,7 +83,7 @@ class RunningDocumentationTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@TestTemplate
|
@TestTemplate
|
||||||
void bootRunSystemPropetry() {
|
void bootRunSystemProperty() {
|
||||||
assertThat(this.gradleBuild.script("src/docs/gradle/running/boot-run-system-property")
|
assertThat(this.gradleBuild.script("src/docs/gradle/running/boot-run-system-property")
|
||||||
.build("-Pexample=custom", "configuredSystemProperties").getOutput())
|
.build("-Pexample=custom", "configuredSystemProperties").getOutput())
|
||||||
.contains("com.example.property = custom");
|
.contains("com.example.property = custom");
|
||||||
|
@ -29,8 +29,8 @@ import org.springframework.util.StringUtils;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class to build Gradle {@link Project Projects} for test fixtures. Wraps
|
* Helper class to build Gradle {@link Project Projects} for test fixtures. Wraps
|
||||||
* functionality of Gradle's own {@link ProjectBuilder} in order to workaround an issue on
|
* functionality of Gradle's own {@link ProjectBuilder} in order to work around an issue
|
||||||
* JDK 17 and 18.
|
* on JDK 17 and 18.
|
||||||
*
|
*
|
||||||
* @author Christoph Dreis
|
* @author Christoph Dreis
|
||||||
* @see <a href="https://github.com/gradle/gradle/issues/16857">Gradle Support JDK 17</a>
|
* @see <a href="https://github.com/gradle/gradle/issues/16857">Gradle Support JDK 17</a>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -350,7 +350,7 @@ class JarFileEntries implements CentralDirectoryVisitor, Iterable<JarEntry> {
|
|||||||
JarEntryCertification[] certifications = this.certifications;
|
JarEntryCertification[] certifications = this.certifications;
|
||||||
if (certifications == null) {
|
if (certifications == null) {
|
||||||
certifications = new JarEntryCertification[this.size];
|
certifications = new JarEntryCertification[this.size];
|
||||||
// We fallback to use JarInputStream to obtain the certs. This isn't that
|
// We fall back to use JarInputStream to obtain the certs. This isn't that
|
||||||
// fast, but hopefully doesn't happen too often.
|
// fast, but hopefully doesn't happen too often.
|
||||||
try (JarInputStream certifiedJarStream = new JarInputStream(this.jarFile.getData().getInputStream())) {
|
try (JarInputStream certifiedJarStream = new JarInputStream(this.jarFile.getData().getInputStream())) {
|
||||||
java.util.jar.JarEntry certifiedEntry = null;
|
java.util.jar.JarEntry certifiedEntry = null;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -179,7 +179,7 @@ public class BuildImageMojo extends AbstractPackagerMojo {
|
|||||||
private LayoutFactory layoutFactory;
|
private LayoutFactory layoutFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the type of archive that should be used when buiding the image.
|
* Return the type of archive that should be used when building the image.
|
||||||
* @return the value of the {@code layout} parameter, or {@code null} if the parameter
|
* @return the value of the {@code layout} parameter, or {@code null} if the parameter
|
||||||
* is not provided
|
* is not provided
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -71,7 +71,7 @@ public class StartMojo extends AbstractRunMojo {
|
|||||||
private int jmxPort = 9001;
|
private int jmxPort = 9001;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of milli-seconds to wait between each attempt to check if the spring
|
* The number of milliseconds to wait between each attempt to check if the spring
|
||||||
* application is ready.
|
* application is ready.
|
||||||
*/
|
*/
|
||||||
@Parameter
|
@Parameter
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -248,7 +248,7 @@ class BeanDefinitionLoader {
|
|||||||
if (resource instanceof ClassPathResource) {
|
if (resource instanceof ClassPathResource) {
|
||||||
// A simple package without a '.' may accidentally get loaded as an XML
|
// A simple package without a '.' may accidentally get loaded as an XML
|
||||||
// document if we're not careful. The result of getInputStream() will be
|
// document if we're not careful. The result of getInputStream() will be
|
||||||
// a file list of the package content. We double check here that it's not
|
// a file list of the package content. We double-check here that it's not
|
||||||
// actually a package.
|
// actually a package.
|
||||||
String path = ((ClassPathResource) resource).getPath();
|
String path = ((ClassPathResource) resource).getPath();
|
||||||
if (path.indexOf('.') == -1) {
|
if (path.indexOf('.') == -1) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -42,13 +42,13 @@ import org.springframework.util.StringUtils;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* An {@link EnvironmentPostProcessor} that knows where to find VCAP (a.k.a. Cloud
|
* An {@link EnvironmentPostProcessor} that knows where to find VCAP (a.k.a. Cloud
|
||||||
* Foundry) meta data in the existing environment. It parses out the VCAP_APPLICATION and
|
* Foundry) metadata in the existing environment. It parses out the VCAP_APPLICATION and
|
||||||
* VCAP_SERVICES meta data and dumps it in a form that is easily consumed by
|
* VCAP_SERVICES metadata and dumps it in a form that is easily consumed by
|
||||||
* {@link Environment} users. If the app is running in Cloud Foundry then both meta data
|
* {@link Environment} users. If the app is running in Cloud Foundry then both metadata
|
||||||
* items are JSON objects encoded in OS environment variables. VCAP_APPLICATION is a
|
* items are JSON objects encoded in OS environment variables. VCAP_APPLICATION is a
|
||||||
* shallow hash with basic information about the application (name, instance id, instance
|
* shallow hash with basic information about the application (name, instance id, instance
|
||||||
* index, etc.), and VCAP_SERVICES is a hash of lists where the keys are service labels
|
* index, etc.), and VCAP_SERVICES is a hash of lists where the keys are service labels
|
||||||
* and the values are lists of hashes of service instance meta data. Examples are:
|
* and the values are lists of hashes of service instance metadata. Examples are:
|
||||||
*
|
*
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* VCAP_APPLICATION: {"instance_id":"2ce0ac627a6c8e47e936d829a3a47b5b","instance_index":0,
|
* VCAP_APPLICATION: {"instance_id":"2ce0ac627a6c8e47e936d829a3a47b5b","instance_index":0,
|
||||||
|
@ -198,7 +198,7 @@ public final class ConfigurationPropertiesBean {
|
|||||||
* @param applicationContext the source application context
|
* @param applicationContext the source application context
|
||||||
* @param bean the bean to consider
|
* @param bean the bean to consider
|
||||||
* @param beanName the bean name
|
* @param beanName the bean name
|
||||||
* @return a configuration properties bean or {@code null} if the neither the bean or
|
* @return a configuration properties bean or {@code null} if the neither the bean nor
|
||||||
* factory method are annotated with
|
* factory method are annotated with
|
||||||
* {@link ConfigurationProperties @ConfigurationProperties}
|
* {@link ConfigurationProperties @ConfigurationProperties}
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -29,7 +29,7 @@ import org.springframework.util.StringUtils;
|
|||||||
/**
|
/**
|
||||||
* A configuration property name composed of elements separated by dots. User created
|
* A configuration property name composed of elements separated by dots. User created
|
||||||
* names may contain the characters "{@code a-z}" "{@code 0-9}") and "{@code -}", they
|
* names may contain the characters "{@code a-z}" "{@code 0-9}") and "{@code -}", they
|
||||||
* must be lower-case and must start with an alpha-numeric character. The "{@code -}" is
|
* must be lower-case and must start with an alphanumeric character. The "{@code -}" is
|
||||||
* used purely for formatting, i.e. "{@code foo-bar}" and "{@code foobar}" are considered
|
* used purely for formatting, i.e. "{@code foo-bar}" and "{@code foobar}" are considered
|
||||||
* equivalent.
|
* equivalent.
|
||||||
* <p>
|
* <p>
|
||||||
@ -448,7 +448,7 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
|
|||||||
int i2 = 0;
|
int i2 = 0;
|
||||||
while (i1 < l1) {
|
while (i1 < l1) {
|
||||||
if (i2 >= l2) {
|
if (i2 >= l2) {
|
||||||
return remainderIsNotAlphaNumberic(e1, i, i1);
|
return remainderIsNotAlphanumeric(e1, i, i1);
|
||||||
}
|
}
|
||||||
char ch1 = indexed1 ? e1.charAt(i, i1) : Character.toLowerCase(e1.charAt(i, i1));
|
char ch1 = indexed1 ? e1.charAt(i, i1) : Character.toLowerCase(e1.charAt(i, i1));
|
||||||
char ch2 = indexed2 ? e2.charAt(i, i2) : Character.toLowerCase(e2.charAt(i, i2));
|
char ch2 = indexed2 ? e2.charAt(i, i2) : Character.toLowerCase(e2.charAt(i, i2));
|
||||||
@ -467,12 +467,12 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i2 < l2) {
|
if (i2 < l2) {
|
||||||
return remainderIsNotAlphaNumberic(e2, i, i2);
|
return remainderIsNotAlphanumeric(e2, i, i2);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean remainderIsNotAlphaNumberic(Elements elements, int element, int index) {
|
private boolean remainderIsNotAlphanumeric(Elements elements, int element, int index) {
|
||||||
if (elements.getType(element).isIndexed()) {
|
if (elements.getType(element).isIndexed()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1049,7 +1049,7 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
|
|||||||
DASHED(false),
|
DASHED(false),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The element contains non uniform characters and will need to be converted.
|
* The element contains non-uniform characters and will need to be converted.
|
||||||
*/
|
*/
|
||||||
NON_UNIFORM(false),
|
NON_UNIFORM(false),
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -39,7 +39,7 @@ import org.springframework.util.Assert;
|
|||||||
* getConfigurationProperty} call attempts to
|
* getConfigurationProperty} call attempts to
|
||||||
* {@link PropertyMapper#map(ConfigurationPropertyName) map} the
|
* {@link PropertyMapper#map(ConfigurationPropertyName) map} the
|
||||||
* {@link ConfigurationPropertyName} to one or more {@code String} based names. This
|
* {@link ConfigurationPropertyName} to one or more {@code String} based names. This
|
||||||
* allows fast property resolution for well formed property sources.
|
* allows fast property resolution for well-formed property sources.
|
||||||
* <p>
|
* <p>
|
||||||
* When possible the {@link SpringIterableConfigurationPropertySource} will be used in
|
* When possible the {@link SpringIterableConfigurationPropertySource} will be used in
|
||||||
* preference to this implementation since it supports full "relaxed" style resolution.
|
* preference to this implementation since it supports full "relaxed" style resolution.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -59,7 +59,7 @@ public interface OriginLookup<K> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempt to lookup the origin from the given source. If the source is not a
|
* Attempt to look up the origin from the given source. If the source is not a
|
||||||
* {@link OriginLookup} or if an exception occurs during lookup then {@code null} is
|
* {@link OriginLookup} or if an exception occurs during lookup then {@code null} is
|
||||||
* returned.
|
* returned.
|
||||||
* @param source the source object
|
* @param source the source object
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -137,8 +137,8 @@ public class TaskExecutorBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set whether core threads are allow to time out. When enabled, this enables dynamic
|
* Set whether core threads are allowed to time out. When enabled, this enables
|
||||||
* growing and shrinking of the pool.
|
* dynamic growing and shrinking of the pool.
|
||||||
* @param allowCoreThreadTimeOut if core threads are allowed to time out
|
* @param allowCoreThreadTimeOut if core threads are allowed to time out
|
||||||
* @return a new builder instance
|
* @return a new builder instance
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -31,7 +31,7 @@ public interface ConfigurableWebServerFactory extends WebServerFactory, ErrorPag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the port that the web server should listen on. If not specified port '8080'
|
* Sets the port that the web server should listen on. If not specified port '8080'
|
||||||
* will be used. Use port -1 to disable auto-start (i.e start the web application
|
* will be used. Use port -1 to disable auto-start (i.e. start the web application
|
||||||
* context but not have it listen to any port).
|
* context but not have it listen to any port).
|
||||||
* @param port the port to set
|
* @param port the port to set
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -151,7 +151,7 @@ public class ServletRegistrationBean<T extends Servlet> extends DynamicRegistrat
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the {@link MultipartConfigElement multi-part configuration}.
|
* Set the {@link MultipartConfigElement multi-part configuration}.
|
||||||
* @param multipartConfig the multi-part configuration to set or {@code null}
|
* @param multipartConfig the multipart configuration to set or {@code null}
|
||||||
*/
|
*/
|
||||||
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
|
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
|
||||||
this.multipartConfig = multipartConfig;
|
this.multipartConfig = multipartConfig;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -65,7 +65,7 @@ class ConfigTreeConfigDataLocationResolverTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void resolveWilcardPattern() throws Exception {
|
void resolveWildcardPattern() throws Exception {
|
||||||
File directoryA = new File(this.temp, "a");
|
File directoryA = new File(this.temp, "a");
|
||||||
File directoryB = new File(this.temp, "b");
|
File directoryB = new File(this.temp, "b");
|
||||||
directoryA.mkdirs();
|
directoryA.mkdirs();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -57,8 +57,8 @@ class CharSequenceToObjectConverterTests {
|
|||||||
StringBuilder source = new StringBuilder("1,2,3");
|
StringBuilder source = new StringBuilder("1,2,3");
|
||||||
TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class);
|
TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class);
|
||||||
TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class));
|
TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class));
|
||||||
List<String> conveted = (List<String>) conversionService.convert(source, sourceType, targetType);
|
List<String> converted = (List<String>) conversionService.convert(source, sourceType, targetType);
|
||||||
assertThat(conveted).containsExactly("1", "2", "3");
|
assertThat(converted).containsExactly("1", "2", "3");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -69,8 +69,8 @@ class CharSequenceToObjectConverterTests {
|
|||||||
StringBuilder source = new StringBuilder("1,2,3");
|
StringBuilder source = new StringBuilder("1,2,3");
|
||||||
TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class);
|
TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class);
|
||||||
TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class));
|
TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class));
|
||||||
List<String> conveted = (List<String>) conversionService.convert(source, sourceType, targetType);
|
List<String> converted = (List<String>) conversionService.convert(source, sourceType, targetType);
|
||||||
assertThat(conveted).containsExactly("1", "2", "3");
|
assertThat(converted).containsExactly("1", "2", "3");
|
||||||
}
|
}
|
||||||
|
|
||||||
static Stream<? extends Arguments> conversionServices() {
|
static Stream<? extends Arguments> conversionServices() {
|
||||||
|
@ -82,7 +82,7 @@ class BindFailureAnalyzerTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test // gh-27028
|
@Test // gh-27028
|
||||||
void bindExceptionDueToClassNotFoundConvertionFailure() {
|
void bindExceptionDueToClassNotFoundConversionFailure() {
|
||||||
FailureAnalysis analysis = performAnalysis(GenericFailureConfiguration.class,
|
FailureAnalysis analysis = performAnalysis(GenericFailureConfiguration.class,
|
||||||
"test.foo.type=com.example.Missing");
|
"test.foo.type=com.example.Missing");
|
||||||
assertThat(analysis.getDescription()).contains(failure("test.foo.type", "com.example.Missing",
|
assertThat(analysis.getDescription()).contains(failure("test.foo.type", "com.example.Missing",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -136,9 +136,9 @@ class ConnectionFactoryBuilderTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void buildWhenDerivedWithNewDatabaseReturnsNewConnectionFactory() {
|
void buildWhenDerivedWithNewDatabaseReturnsNewConnectionFactory() {
|
||||||
String intialDatabaseName = UUID.randomUUID().toString();
|
String initialDatabaseName = UUID.randomUUID().toString();
|
||||||
ConnectionFactory connectionFactory = ConnectionFactoryBuilder
|
ConnectionFactory connectionFactory = ConnectionFactoryBuilder
|
||||||
.withUrl(EmbeddedDatabaseConnection.H2.getUrl(intialDatabaseName)).build();
|
.withUrl(EmbeddedDatabaseConnection.H2.getUrl(initialDatabaseName)).build();
|
||||||
ConnectionFactoryOptions initialOptions = ((OptionsCapableConnectionFactory) connectionFactory).getOptions();
|
ConnectionFactoryOptions initialOptions = ((OptionsCapableConnectionFactory) connectionFactory).getOptions();
|
||||||
String derivedDatabaseName = UUID.randomUUID().toString();
|
String derivedDatabaseName = UUID.randomUUID().toString();
|
||||||
ConnectionFactory derived = ConnectionFactoryBuilder.derivedFrom(connectionFactory)
|
ConnectionFactory derived = ConnectionFactoryBuilder.derivedFrom(connectionFactory)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -221,7 +221,7 @@ class ApplicationContextRequestMatcherTests {
|
|||||||
private volatile Throwable ex;
|
private volatile Throwable ex;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void uncaughtException(Thread thead, Throwable ex) {
|
public void uncaughtException(Thread thread, Throwable ex) {
|
||||||
this.ex = ex;
|
this.ex = ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -33,7 +33,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
class SampleBootstrapRegistryApplicationTests {
|
class SampleBootstrapRegistryApplicationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testBootrapper(CapturedOutput output) {
|
void testBootstrapper(CapturedOutput output) {
|
||||||
SampleBootstrapRegistryApplication.main(new String[0]);
|
SampleBootstrapRegistryApplication.main(new String[0]);
|
||||||
assertThat(output).contains("svn my-data from svn / example.com[secret]")
|
assertThat(output).contains("svn my-data from svn / example.com[secret]")
|
||||||
.contains("client smoketest.bootstrapregistry.app.MySubversionClient");
|
.contains("client smoketest.bootstrapregistry.app.MySubversionClient");
|
||||||
|
@ -28,7 +28,7 @@ import org.springframework.test.context.ActiveProfiles;
|
|||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests that profiles are activited in the correct order from an
|
* Tests that profiles are activated in the correct order from an
|
||||||
* {@link EnvironmentPostProcessor}.
|
* {@link EnvironmentPostProcessor}.
|
||||||
*
|
*
|
||||||
* @author Madhura Bhave
|
* @author Madhura Bhave
|
||||||
|
@ -56,12 +56,12 @@ class SampleSessionWebFluxApplicationTests {
|
|||||||
return response.bodyToMono(String.class)
|
return response.bodyToMono(String.class)
|
||||||
.map((sessionId) -> Tuples.of(response.cookies().getFirst("SESSION").getValue(), sessionId));
|
.map((sessionId) -> Tuples.of(response.cookies().getFirst("SESSION").getValue(), sessionId));
|
||||||
}).flatMap((tuple) -> {
|
}).flatMap((tuple) -> {
|
||||||
String sesssionCookie = tuple.getT1();
|
String sessionCookie = tuple.getT1();
|
||||||
return client.get().cookie("SESSION", sesssionCookie).exchangeToMono((response) -> {
|
return client.get().cookie("SESSION", sessionCookie).exchangeToMono((response) -> {
|
||||||
assertThat(response.statusCode()).isEqualTo(HttpStatus.OK);
|
assertThat(response.statusCode()).isEqualTo(HttpStatus.OK);
|
||||||
return response.bodyToMono(String.class)
|
return response.bodyToMono(String.class)
|
||||||
.doOnNext((sessionId) -> assertThat(sessionId).isEqualTo(tuple.getT2()))
|
.doOnNext((sessionId) -> assertThat(sessionId).isEqualTo(tuple.getT2()))
|
||||||
.thenReturn(sesssionCookie);
|
.thenReturn(sessionCookie);
|
||||||
});
|
});
|
||||||
}).delayElement(Duration.ofSeconds(10))
|
}).delayElement(Duration.ofSeconds(10))
|
||||||
.flatMap((sessionCookie) -> client.get().cookie("SESSION", sessionCookie).exchangeToMono((response) -> {
|
.flatMap((sessionCookie) -> client.get().cookie("SESSION", sessionCookie).exchangeToMono((response) -> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -37,7 +37,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Basic Spring MVC Test for the Sample Controller"
|
* A Basic Spring MVC Test for the Sample Controller.
|
||||||
*
|
*
|
||||||
* @author Biju Kunjummen
|
* @author Biju Kunjummen
|
||||||
* @author Doo-Hwan, Kwak
|
* @author Doo-Hwan, Kwak
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -37,7 +37,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Basic Spring MVC Test for the Sample Controller"
|
* A Basic Spring MVC Test for the Sample Controller.
|
||||||
*
|
*
|
||||||
* @author Biju Kunjummen
|
* @author Biju Kunjummen
|
||||||
* @author Doo-Hwan, Kwak
|
* @author Doo-Hwan, Kwak
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
|
|||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the timer for the multi-player snake game WebSocket example.
|
* Sets up the timer for the multiplayer snake game WebSocket example.
|
||||||
*/
|
*/
|
||||||
public final class SnakeTimer {
|
public final class SnakeTimer {
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
|
|||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the timer for the multi-player snake game WebSocket example.
|
* Sets up the timer for the multiplayer snake game WebSocket example.
|
||||||
*/
|
*/
|
||||||
public final class SnakeTimer {
|
public final class SnakeTimer {
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
|
|||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the timer for the multi-player snake game WebSocket example.
|
* Sets up the timer for the multiplayer snake game WebSocket example.
|
||||||
*/
|
*/
|
||||||
public final class SnakeTimer {
|
public final class SnakeTimer {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user