This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 63742c5a54b9baf61c2f7e68d9a9078614a437d1 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Tue May 31 15:12:19 2022 +0200 (chores) camel-crypto: rename manual test This prevent it from being flagged with missing assertions in code analysis --- .../java/org/apache/camel/converter/crypto/HMACAccumulatorTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/camel-crypto/src/test/java/org/apache/camel/converter/crypto/HMACAccumulatorTest.java b/components/camel-crypto/src/test/java/org/apache/camel/converter/crypto/HMACAccumulatorTest.java index f67a10098dd..54f93714c37 100644 --- a/components/camel-crypto/src/test/java/org/apache/camel/converter/crypto/HMACAccumulatorTest.java +++ b/components/camel-crypto/src/test/java/org/apache/camel/converter/crypto/HMACAccumulatorTest.java @@ -27,6 +27,7 @@ import org.apache.camel.converter.crypto.HMACAccumulator.CircularBuffer; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; public class HMACAccumulatorTest { @@ -163,6 +164,10 @@ public class HMACAccumulatorTest { @Test void testBufferCompare() { + assertDoesNotThrow(() -> doBufferCompare()); + } + + private void doBufferCompare() { CircularBuffer buffer = new CircularBuffer(payload.length * 2); buffer.write(new byte[payload.length >> 1], 0, payload.length >> 1); buffer.write(payload, 0, payload.length);