You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2022/05/12 15:20:11 UTC
[activemq-artemis] branch new-logging updated: small test tweak
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch new-logging
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/new-logging by this push:
new fc01e41eac small test tweak
fc01e41eac is described below
commit fc01e41eac1c248e57114ea7e3bb16d4e3a5de39
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Thu May 12 11:19:57 2022 -0400
small test tweak
---
.../org/apache/activemq/artemis/logprocessor/SimpleBundleTest.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/artemis-log-processor/src/test/java/org/apache/activemq/artemis/logprocessor/SimpleBundleTest.java b/artemis-log-processor/src/test/java/org/apache/activemq/artemis/logprocessor/SimpleBundleTest.java
index f38bc61175..2f5ba91fcb 100644
--- a/artemis-log-processor/src/test/java/org/apache/activemq/artemis/logprocessor/SimpleBundleTest.java
+++ b/artemis-log-processor/src/test/java/org/apache/activemq/artemis/logprocessor/SimpleBundleTest.java
@@ -17,6 +17,7 @@
package org.apache.activemq.artemis.logprocessor;
+import java.util.Random;
import java.util.UUID;
import org.junit.Assert;
@@ -64,8 +65,9 @@ public class SimpleBundleTest {
@Test
public void testWithException() {
Exception myCause = new Exception("this is myCause");
- MyException myException = SimpleBundle.MESSAGES.someExceptionWithCause("1", myCause);
- Assert.assertEquals("TST8 EX1", myException.getMessage());
+ String logRandomString = "" + System.currentTimeMillis();
+ MyException myException = SimpleBundle.MESSAGES.someExceptionWithCause(logRandomString, myCause);
+ Assert.assertEquals("TST8 EX" + logRandomString, myException.getMessage());
Assert.assertSame(myCause, myException.getCause());
}