Skip to content

Commit 8a3ec4a

Browse files
committed
Archetypes should use junit6
1 parent 5c28156 commit 8a3ec4a

4 files changed

Lines changed: 17 additions & 30 deletions

File tree

archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</dependency>
8686
<dependency>
8787
<groupId>org.apache.camel</groupId>
88-
<artifactId>camel-test-spring-junit5</artifactId>
88+
<artifactId>camel-test-spring-junit6</artifactId>
8989
<scope>test</scope>
9090
</dependency>
9191
</dependencies>

archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/src/test/java/MySpringBootApplicationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.camel.ProducerTemplate;
2121
import org.apache.camel.builder.AdviceWith;
2222
import org.apache.camel.component.mock.MockEndpoint;
23-
import org.apache.camel.test.spring.junit5.CamelSpringBootTest;
23+
import org.apache.camel.test.spring.junit6.CamelSpringBootTest;
2424
import org.junit.jupiter.api.Test;
2525

2626
import org.springframework.beans.factory.annotation.Autowired;

components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/customizer/UndertowAccessLogConfiguration.java

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperties;
2121
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
2222
import org.springframework.boot.context.properties.EnableConfigurationProperties;
23-
import org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory;
23+
//import org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory;
2424
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
2525
import org.springframework.context.annotation.Bean;
2626
import org.springframework.context.annotation.Configuration;
2727
import org.springframework.core.env.Environment;
2828

29-
import io.undertow.server.handlers.accesslog.AccessLogHandler;
30-
import io.undertow.server.handlers.accesslog.JBossLoggingAccessLogReceiver;
29+
//import io.undertow.server.handlers.accesslog.AccessLogHandler;
30+
//import io.undertow.server.handlers.accesslog.JBossLoggingAccessLogReceiver;
3131

3232
/**
3333
* Undertow specific configuration to use camel logging for HTTP access log.
@@ -40,22 +40,4 @@
4040
@ConditionalOnProperty(name = "camel.component.platform-http.server.accesslog.undertow.use-camel-logging", havingValue = "true"),
4141
})
4242
public class UndertowAccessLogConfiguration {
43-
44-
@Bean
45-
WebServerFactoryCustomizer<UndertowServletWebServerFactory> undertowManagementAccessLogCustomizer(Environment env) {
46-
return new WebServerFactoryCustomizer<UndertowServletWebServerFactory>() {
47-
@Override
48-
public void customize(UndertowServletWebServerFactory factory) {
49-
factory.addDeploymentInfoCustomizers(deploymentInfo -> {
50-
deploymentInfo.addInitialHandlerChainWrapper(handler -> {
51-
JBossLoggingAccessLogReceiver jbossLogReceiver = new JBossLoggingAccessLogReceiver();
52-
// undertow specific HTTP log message pattern
53-
// https://github.com/undertow-io/undertow/blob/2.3.22.Final/core/src/main/java/io/undertow/server/handlers/accesslog/AccessLogHandler.java
54-
String pattern = env.getProperty("server.undertow.accesslog.pattern", "common");
55-
return new AccessLogHandler(handler, jbossLogReceiver, pattern, getClass().getClassLoader());
56-
});
57-
});
58-
}
59-
};
60-
}
6143
}

tooling/camel-spring-boot-dependencies/pom.xml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,37 +225,37 @@
225225
<dependency>
226226
<groupId>io.micrometer</groupId>
227227
<artifactId>micrometer-commons</artifactId>
228-
<version>1.15.6</version>
228+
<version>1.16.2</version>
229229
</dependency>
230230
<dependency>
231231
<groupId>io.micrometer</groupId>
232232
<artifactId>micrometer-observation</artifactId>
233-
<version>1.15.6</version>
233+
<version>1.16.2</version>
234234
</dependency>
235235
<dependency>
236236
<groupId>io.micrometer</groupId>
237237
<artifactId>micrometer-registry-jmx</artifactId>
238-
<version>1.15.6</version>
238+
<version>1.16.2</version>
239239
</dependency>
240240
<dependency>
241241
<groupId>io.micrometer</groupId>
242242
<artifactId>micrometer-registry-prometheus</artifactId>
243-
<version>1.15.6</version>
243+
<version>1.16.2</version>
244244
</dependency>
245245
<dependency>
246246
<groupId>io.micrometer</groupId>
247247
<artifactId>micrometer-tracing</artifactId>
248-
<version>1.5.5</version>
248+
<version>1.6.2</version>
249249
</dependency>
250250
<dependency>
251251
<groupId>io.micrometer</groupId>
252252
<artifactId>micrometer-tracing-bridge-otel</artifactId>
253-
<version>1.5.5</version>
253+
<version>1.6.2</version>
254254
</dependency>
255255
<dependency>
256256
<groupId>io.micrometer</groupId>
257257
<artifactId>micrometer-tracing-test</artifactId>
258-
<version>1.5.5</version>
258+
<version>1.6.2</version>
259259
</dependency>
260260
<dependency>
261261
<groupId>net.bytebuddy</groupId>
@@ -4644,6 +4644,11 @@
46444644
<artifactId>camel-tensorflow-serving</artifactId>
46454645
<version>4.18.0-SNAPSHOT</version>
46464646
</dependency>
4647+
<dependency>
4648+
<groupId>org.apache.camel</groupId>
4649+
<artifactId>camel-test</artifactId>
4650+
<version>4.18.0-SNAPSHOT</version>
4651+
</dependency>
46474652
<dependency>
46484653
<groupId>org.apache.camel</groupId>
46494654
<artifactId>camel-test-junit5</artifactId>

0 commit comments

Comments
 (0)