You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2015/10/28 14:48:13 UTC
[2/2] qpid-jms git commit: QPIDJMS-132 Add log output indicating the
progress of test repeats.
QPIDJMS-132 Add log output indicating the progress of test repeats.
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/81041074
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/81041074
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/81041074
Branch: refs/heads/master
Commit: 810410747c0b46c866bc5b78c97e9f5ab96a59d3
Parents: 0a39cab
Author: Timothy Bish <ta...@gmail.com>
Authored: Wed Oct 28 09:47:52 2015 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Wed Oct 28 09:47:52 2015 -0400
----------------------------------------------------------------------
.../test/java/org/apache/qpid/jms/util/RepeatStatement.java | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/81041074/qpid-jms-client/src/test/java/org/apache/qpid/jms/util/RepeatStatement.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/util/RepeatStatement.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/util/RepeatStatement.java
index 9440da2..0b2b543 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/util/RepeatStatement.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/util/RepeatStatement.java
@@ -17,9 +17,13 @@
package org.apache.qpid.jms.util;
import org.junit.runners.model.Statement;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public final class RepeatStatement extends Statement {
+ private static final Logger LOG = LoggerFactory.getLogger(RepeatStatement.class);
+
private final int repetitions;
private final boolean untilFailure;
private final Statement statement;
@@ -43,6 +47,11 @@ public final class RepeatStatement extends Statement {
@Override
public void evaluate() throws Throwable {
for (int i = 0; i < repetitions && !untilFailure; i++) {
+ if (untilFailure) {
+ LOG.info("Running test iteration: {}.", i + 1);
+ } else {
+ LOG.info("Running test iteration: {} of configured repetitions: {}", i + 1, repetitions);
+ }
statement.evaluate();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org