Merge pull request #43316 from izeye
* pr/43316: Update copyright year of changed file Polish Closes gh-43316
This commit is contained in:
commit
4ee9fae166
|
|
@ -50,7 +50,7 @@ public class OtlpLoggingProperties {
|
||||||
private Duration connectTimeout = Duration.ofSeconds(10);
|
private Duration connectTimeout = Duration.ofSeconds(10);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transport used to send the spans.
|
* Transport used to send the logs.
|
||||||
*/
|
*/
|
||||||
private Transport transport = Transport.HTTP;
|
private Transport transport = Transport.HTTP;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -187,9 +187,9 @@ public class JmsProperties {
|
||||||
private Duration receiveTimeout = Duration.ofSeconds(1);
|
private Duration receiveTimeout = Duration.ofSeconds(1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the maximum number of messages to process in one task. By default,
|
* Maximum number of messages to process in one task. By default, unlimited unless
|
||||||
* unlimited unless a SchedulingTaskExecutor is configured on the listener (10
|
* a SchedulingTaskExecutor is configured on the listener (10 messages), as it
|
||||||
* messages), as it indicates a preference for short-lived tasks.
|
* indicates a preference for short-lived tasks.
|
||||||
*/
|
*/
|
||||||
private Integer maxMessagesPerTask;
|
private Integer maxMessagesPerTask;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,19 +55,19 @@ class OpenTelemetryLoggingDockerComposeConnectionDetailsFactory
|
||||||
|
|
||||||
private final int grpcPort;
|
private final int grpcPort;
|
||||||
|
|
||||||
private final int httPort;
|
private final int httpPort;
|
||||||
|
|
||||||
private OpenTelemetryLoggingDockerComposeConnectionDetails(RunningService source) {
|
private OpenTelemetryLoggingDockerComposeConnectionDetails(RunningService source) {
|
||||||
super(source);
|
super(source);
|
||||||
this.host = source.host();
|
this.host = source.host();
|
||||||
this.grpcPort = source.ports().get(OTLP_GRPC_PORT);
|
this.grpcPort = source.ports().get(OTLP_GRPC_PORT);
|
||||||
this.httPort = source.ports().get(OTLP_HTTP_PORT);
|
this.httpPort = source.ports().get(OTLP_HTTP_PORT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUrl(Transport transport) {
|
public String getUrl(Transport transport) {
|
||||||
int port = switch (transport) {
|
int port = switch (transport) {
|
||||||
case HTTP -> this.httPort;
|
case HTTP -> this.httpPort;
|
||||||
case GRPC -> this.grpcPort;
|
case GRPC -> this.grpcPort;
|
||||||
};
|
};
|
||||||
return "http://%s:%d/v1/logs".formatted(this.host, port);
|
return "http://%s:%d/v1/logs".formatted(this.host, port);
|
||||||
|
|
|
||||||
|
|
@ -56,19 +56,19 @@ class OpenTelemetryTracingDockerComposeConnectionDetailsFactory
|
||||||
|
|
||||||
private final int grpcPort;
|
private final int grpcPort;
|
||||||
|
|
||||||
private final int httPort;
|
private final int httpPort;
|
||||||
|
|
||||||
private OpenTelemetryTracingDockerComposeConnectionDetails(RunningService source) {
|
private OpenTelemetryTracingDockerComposeConnectionDetails(RunningService source) {
|
||||||
super(source);
|
super(source);
|
||||||
this.host = source.host();
|
this.host = source.host();
|
||||||
this.grpcPort = source.ports().get(OTLP_GRPC_PORT);
|
this.grpcPort = source.ports().get(OTLP_GRPC_PORT);
|
||||||
this.httPort = source.ports().get(OTLP_HTTP_PORT);
|
this.httpPort = source.ports().get(OTLP_HTTP_PORT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUrl(Transport transport) {
|
public String getUrl(Transport transport) {
|
||||||
int port = switch (transport) {
|
int port = switch (transport) {
|
||||||
case HTTP -> this.httPort;
|
case HTTP -> this.httpPort;
|
||||||
case GRPC -> this.grpcPort;
|
case GRPC -> this.grpcPort;
|
||||||
};
|
};
|
||||||
return "http://%s:%d/v1/traces".formatted(this.host, port);
|
return "http://%s:%d/v1/traces".formatted(this.host, port);
|
||||||
|
|
|
||||||
|
|
@ -307,7 +307,7 @@ Information returned by the `/env`, `/configprops` and `/quartz` endpoints can b
|
||||||
|
|
||||||
Values can only be viewed in an unsanitized form when:
|
Values can only be viewed in an unsanitized form when:
|
||||||
|
|
||||||
- The `show-values` property has been set to something other than `NEVER`
|
- The `show-values` property has been set to something other than `never`
|
||||||
- No custom xref:how-to:actuator.adoc#howto.actuator.customizing-sanitization[`SanitizingFunction`] beans apply
|
- No custom xref:how-to:actuator.adoc#howto.actuator.customizing-sanitization[`SanitizingFunction`] beans apply
|
||||||
|
|
||||||
The `show-values` property can be configured for sanitizable endpoints to one of the following values:
|
The `show-values` property can be configured for sanitizable endpoints to one of the following values:
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import org.testcontainers.containers.PostgreSQLContainer;
|
||||||
|
|
||||||
import org.springframework.boot.test.system.CapturedOutput;
|
import org.springframework.boot.test.system.CapturedOutput;
|
||||||
import org.springframework.boot.test.system.OutputCaptureExtension;
|
import org.springframework.boot.test.system.OutputCaptureExtension;
|
||||||
import org.springframework.boot.testcontainers.lifecycle.TestContainersParallelStartupIntegrationTests.ContainerConfig;
|
import org.springframework.boot.testcontainers.lifecycle.TestcontainersParallelStartupIntegrationTests.ContainerConfig;
|
||||||
import org.springframework.boot.testsupport.container.DisabledIfDockerUnavailable;
|
import org.springframework.boot.testsupport.container.DisabledIfDockerUnavailable;
|
||||||
import org.springframework.boot.testsupport.container.TestImage;
|
import org.springframework.boot.testsupport.container.TestImage;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
@ -43,7 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
@TestPropertySource(properties = "spring.testcontainers.beans.startup=parallel")
|
@TestPropertySource(properties = "spring.testcontainers.beans.startup=parallel")
|
||||||
@DisabledIfDockerUnavailable
|
@DisabledIfDockerUnavailable
|
||||||
@ExtendWith(OutputCaptureExtension.class)
|
@ExtendWith(OutputCaptureExtension.class)
|
||||||
class TestContainersParallelStartupIntegrationTests {
|
class TestcontainersParallelStartupIntegrationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void startsInParallel(CapturedOutput out) {
|
void startsInParallel(CapturedOutput out) {
|
||||||
|
|
@ -24,7 +24,7 @@ import org.testcontainers.junit.jupiter.Container;
|
||||||
import org.springframework.boot.test.system.CapturedOutput;
|
import org.springframework.boot.test.system.CapturedOutput;
|
||||||
import org.springframework.boot.test.system.OutputCaptureExtension;
|
import org.springframework.boot.test.system.OutputCaptureExtension;
|
||||||
import org.springframework.boot.testcontainers.context.ImportTestcontainers;
|
import org.springframework.boot.testcontainers.context.ImportTestcontainers;
|
||||||
import org.springframework.boot.testcontainers.lifecycle.TestContainersParallelStartupWithImportTestcontainersIntegrationTests.Containers;
|
import org.springframework.boot.testcontainers.lifecycle.TestcontainersParallelStartupWithImportTestcontainersIntegrationTests.Containers;
|
||||||
import org.springframework.boot.testsupport.container.DisabledIfDockerUnavailable;
|
import org.springframework.boot.testsupport.container.DisabledIfDockerUnavailable;
|
||||||
import org.springframework.boot.testsupport.container.TestImage;
|
import org.springframework.boot.testsupport.container.TestImage;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
|
|
@ -42,7 +42,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
@DisabledIfDockerUnavailable
|
@DisabledIfDockerUnavailable
|
||||||
@ExtendWith(OutputCaptureExtension.class)
|
@ExtendWith(OutputCaptureExtension.class)
|
||||||
@ImportTestcontainers(Containers.class)
|
@ImportTestcontainers(Containers.class)
|
||||||
class TestContainersParallelStartupWithImportTestcontainersIntegrationTests {
|
class TestcontainersParallelStartupWithImportTestcontainersIntegrationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void startsInParallel(CapturedOutput out) {
|
void startsInParallel(CapturedOutput out) {
|
||||||
|
|
@ -43,7 +43,7 @@ The `native` profile configures the following:
|
||||||
|
|
||||||
[WARNING]
|
[WARNING]
|
||||||
====
|
====
|
||||||
The use of the raw classpath means that native image does not know about the generated `MANIFEST`.
|
The use of the raw classpath means that native image does not know about the generated `MANIFEST.MF`.
|
||||||
If you need to read the content of the manifest in a native image, for instance to get the implementation version of your application, configure the `classesDirectory` option to use the regular jar.
|
If you need to read the content of the manifest in a native image, for instance to get the implementation version of your application, configure the `classesDirectory` option to use the regular jar.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ package org.springframework.boot.testsupport.assertj;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import org.assertj.core.api.AbstractAssert;
|
import org.assertj.core.api.AbstractAssert;
|
||||||
|
|
@ -28,7 +27,7 @@ import org.assertj.core.api.Assert;
|
||||||
import org.springframework.util.ReflectionUtils;
|
import org.springframework.util.ReflectionUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AssertJ {@link Assert} for {@link ScheduledThreadPoolExecutor}.
|
* AssertJ {@link Assert} for {@link ScheduledExecutorService}.
|
||||||
*
|
*
|
||||||
* @author Mike Turbe
|
* @author Mike Turbe
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
|
|
@ -82,9 +81,9 @@ public final class ScheduledExecutorServiceAssert
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new assertion class with the given {@link ScheduledExecutorService}.
|
* Creates a new assertion instance with the given {@link ScheduledExecutorService}.
|
||||||
* @param actual the {@link ScheduledExecutorService}
|
* @param actual the {@link ScheduledExecutorService}
|
||||||
* @return the assertion class
|
* @return the assertion instance
|
||||||
*/
|
*/
|
||||||
public static ScheduledExecutorServiceAssert assertThat(ScheduledExecutorService actual) {
|
public static ScheduledExecutorServiceAssert assertThat(ScheduledExecutorService actual) {
|
||||||
return new ScheduledExecutorServiceAssert(actual);
|
return new ScheduledExecutorServiceAssert(actual);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2023 the original author or authors.
|
* Copyright 2012-2024 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.
|
||||||
|
|
@ -73,9 +73,9 @@ public final class SimpleAsyncTaskExecutorAssert
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new assertion class with the given {@link SimpleAsyncTaskExecutor}.
|
* Creates a new assertion instance with the given {@link SimpleAsyncTaskExecutor}.
|
||||||
* @param actual the {@link SimpleAsyncTaskExecutor}
|
* @param actual the {@link SimpleAsyncTaskExecutor}
|
||||||
* @return the assertion class
|
* @return the assertion instance
|
||||||
*/
|
*/
|
||||||
public static SimpleAsyncTaskExecutorAssert assertThat(SimpleAsyncTaskExecutor actual) {
|
public static SimpleAsyncTaskExecutorAssert assertThat(SimpleAsyncTaskExecutor actual) {
|
||||||
return new SimpleAsyncTaskExecutorAssert(actual);
|
return new SimpleAsyncTaskExecutorAssert(actual);
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class JsonMixinModuleTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void jsonWithModuleEmptyMixInWithEmptyTypesShouldFailed() {
|
void jsonWithModuleEmptyMixInWithEmptyTypesShouldFail() {
|
||||||
assertThatExceptionOfType(BeanCreationException.class).isThrownBy(() -> load(EmptyMixIn.class))
|
assertThatExceptionOfType(BeanCreationException.class).isThrownBy(() -> load(EmptyMixIn.class))
|
||||||
.withMessageContaining("Error creating bean with name 'jsonMixinModule'")
|
.withMessageContaining("Error creating bean with name 'jsonMixinModule'")
|
||||||
.withStackTraceContaining("@JsonMixin annotation on class "
|
.withStackTraceContaining("@JsonMixin annotation on class "
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue