This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-4.10.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7a3537fc29be213f680c64cd6e1f83d913125925 Author: Claus Ibsen <[email protected]> AuthorDate: Wed Jul 2 07:50:59 2025 +0200 CAMEL-22208 Optimize CachedOutputStream.pageToFileStream for large streams --- tests/camel-streamcaching-test/pom.xml | 31 +--------------------- .../src/test/resources/log4j2.properties | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/tests/camel-streamcaching-test/pom.xml b/tests/camel-streamcaching-test/pom.xml index 261261ccf0d..e2f8c14a470 100644 --- a/tests/camel-streamcaching-test/pom.xml +++ b/tests/camel-streamcaching-test/pom.xml @@ -89,12 +89,6 @@ <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> - <dependency> - <groupId>org.mockito</groupId> - <artifactId>mockito-core</artifactId> - <version>${mockito-version}</version> - <scope>test</scope> - </dependency> <!-- logging --> <dependency> <groupId>org.apache.logging.log4j</groupId> @@ -107,41 +101,18 @@ <scope>test</scope> </dependency> - <!-- for validator tests, the artifact itself is included inside the project repository 'camel-validator-test-repo' above --> - <dependency> - <groupId>org.apache.camel.tests</groupId> - <artifactId>camel-validator-test-resources</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> <build> <plugins> - - <!-- to validate Camel endpoints: mvn camel-report:validate --> - <plugin> - <groupId>org.apache.camel</groupId> - <artifactId>camel-report-maven-plugin</artifactId> - <version>${project.version}</version> - <configuration> - <failOnError>false</failOnError> - <includeTest>true</includeTest> - <includeXml>true</includeXml> - <ignoreLenientProperties>false</ignoreLenientProperties> - </configuration> - </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <systemPropertyVariables> <derby.stream.error.file>target/derby.log</derby.stream.error.file> </systemPropertyVariables> + <!-- run with low memory to test stream caching should avoid OOME --> <argLine>-XX:MaxDirectMemorySize=512k</argLine> - <excludes> - <!-- exclude doc tests as they dont work on CI server --> - <exclude>**/*DocumentationTest.*</exclude> - </excludes> </configuration> </plugin> </plugins> diff --git a/tests/camel-streamcaching-test/src/test/resources/log4j2.properties b/tests/camel-streamcaching-test/src/test/resources/log4j2.properties new file mode 100644 index 00000000000..ec7378eb62a --- /dev/null +++ b/tests/camel-streamcaching-test/src/test/resources/log4j2.properties @@ -0,0 +1,28 @@ +## --------------------------------------------------------------------------- +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## --------------------------------------------------------------------------- + +appender.file.type = File +appender.file.name = file +appender.file.fileName = target/camel-streamcaching-test.log +appender.file.layout.type = PatternLayout +appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n +appender.stdout.type = Console +appender.stdout.name = stdout +appender.stdout.layout.type = PatternLayout +appender.stdout.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n +rootLogger.level = INFO +rootLogger.appenderRef.file.ref = file
