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 5e69d7c NO-JIRA removing verbosing logging from test
5e69d7c is described below
commit 5e69d7c34e4af9b59b63dd69f184b5a50bf68196
Author: Clebert Suconic <[email protected]>
AuthorDate: Thu Jul 9 10:36:32 2020 -0400
NO-JIRA removing verbosing logging from test
---
.../persistence/XmlImportExportTest.java | 35 ++++++++++++----------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
index f2d69d5..f4ee96f 100644
---
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
+++
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
@@ -58,6 +58,7 @@ import
org.apache.activemq.artemis.tests.unit.util.InVMContext;
import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
import org.apache.activemq.artemis.tests.util.RandomUtil;
import org.apache.activemq.artemis.utils.UUIDGenerator;
+import org.jboss.logging.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@@ -68,6 +69,8 @@ import org.junit.runners.Parameterized;
@RunWith(value = Parameterized.class)
public class XmlImportExportTest extends ActiveMQTestBase {
+ private static final Logger logger =
Logger.getLogger(XmlImportExportTest.class);
+
private boolean forceLongs;
@Parameterized.Parameters(name = "forceLongs={0}")
@@ -140,7 +143,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -237,7 +240,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -293,7 +296,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -338,7 +341,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -385,7 +388,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -423,7 +426,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -488,7 +491,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -561,7 +564,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -632,7 +635,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -685,7 +688,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -751,7 +754,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -818,7 +821,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -956,7 +959,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -1002,7 +1005,7 @@ public class XmlImportExportTest extends ActiveMQTestBase
{
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -1058,7 +1061,7 @@ public class XmlImportExportTest extends ActiveMQTestBase
{
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();
@@ -1106,7 +1109,7 @@ public class XmlImportExportTest extends ActiveMQTestBase
{
ByteArrayOutputStream xmlOutputStream = new ByteArrayOutputStream();
XmlDataExporter xmlDataExporter = new XmlDataExporter();
xmlDataExporter.process(xmlOutputStream,
server.getConfiguration().getBindingsDirectory(),
server.getConfiguration().getJournalDirectory(),
server.getConfiguration().getPagingDirectory(),
server.getConfiguration().getLargeMessagesDirectory());
- System.out.print(new String(xmlOutputStream.toByteArray()));
+ if (logger.isDebugEnabled()) logger.debug(new
String(xmlOutputStream.toByteArray()));
clearDataRecreateServerDirs();
server.start();