activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] branch master updated: NO-JIRA Small improvement on compatibility tests
Date Wed, 19 Aug 2020 15:53:00 GMT
This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new c63c1f4  NO-JIRA Small improvement on compatibility tests
c63c1f4 is described below

commit c63c1f40ca19a7b207a8af1f3810393c38610dd2
Author: Clebert Suconic <clebertsuconic@apache.org>
AuthorDate: Wed Aug 19 11:47:27 2020 -0400

    NO-JIRA Small improvement on compatibility tests
---
 .../main/resources/servers/artemisServer.groovy    |  2 +-
 .../tests/compatibility/base/ClasspathBase.java    | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/tests/compatibility-tests/src/main/resources/servers/artemisServer.groovy b/tests/compatibility-tests/src/main/resources/servers/artemisServer.groovy
index 4886a5d..9171b80 100644
--- a/tests/compatibility-tests/src/main/resources/servers/artemisServer.groovy
+++ b/tests/compatibility-tests/src/main/resources/servers/artemisServer.groovy
@@ -43,7 +43,7 @@ try {
     if (!type.startsWith("ARTEMIS-1")) {
         configuration.addAddressesSetting("#", new AddressSettings().setAutoCreateAddresses(true));
         if (globalMaxSize != null) {
-            configuration.getAddressesSettings().get("#").setPageSizeBytes(Long.parseLong(globalMaxSize)).setAddressFullMessagePolicy(AddressFullMessagePolicy.PAGE)
+            configuration.getAddressesSettings().get("#").setPageSizeBytes((int)Long.parseLong(globalMaxSize)).setAddressFullMessagePolicy(AddressFullMessagePolicy.PAGE)
             configuration.setGlobalMaxSize(Long.parseLong(globalMaxSize));
         }
     }
diff --git a/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/base/ClasspathBase.java
b/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/base/ClasspathBase.java
index 6bdd500..50f2a00 100644
--- a/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/base/ClasspathBase.java
+++ b/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/base/ClasspathBase.java
@@ -26,9 +26,14 @@ import java.util.HashSet;
 import java.util.Map;
 
 import org.apache.activemq.artemis.tests.compatibility.GroovyRun;
+import org.jboss.logging.Logger;
 import org.junit.Assume;
 import org.junit.ClassRule;
+import org.junit.Rule;
 import org.junit.rules.TemporaryFolder;
+import org.junit.rules.TestRule;
+import org.junit.rules.TestWatcher;
+import org.junit.runner.Description;
 
 import static org.apache.activemq.artemis.tests.compatibility.GroovyRun.SNAPSHOT;
 
@@ -37,6 +42,23 @@ import static org.apache.activemq.artemis.tests.compatibility.GroovyRun.SNAPSHOT
 public class ClasspathBase {
 
 
+   private final Logger instanceLog = Logger.getLogger(this.getClass());
+
+   @Rule
+   public TestRule watcher = new TestWatcher() {
+
+      @Override
+      protected void starting(Description description) {
+         instanceLog.info(String.format("**** start #test %s() ***", ClasspathBase.this.getClass().getName()
+ "::" + description.getMethodName()));
+      }
+
+      @Override
+      protected void finished(Description description) {
+         instanceLog.info(String.format("**** end #test %s() ***", ClasspathBase.this.getClass().getName()
+ "::" + description.getMethodName()));
+      }
+   };
+
+
    @ClassRule
    public static TemporaryFolder serverFolder;
    private static int javaVersion;


Mime
View raw message