Skip to content

Commit f80e0a6

Browse files
committed
Adding log for CI debug
1 parent 5f229d5 commit f80e0a6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/test/java/com/rabbitmq/client/test/BrokerTestCase.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@
2020
import com.rabbitmq.tools.Host;
2121
import org.junit.After;
2222
import org.junit.Before;
23+
import org.junit.Rule;
24+
import org.junit.rules.TestRule;
25+
import org.junit.rules.TestWatcher;
26+
import org.junit.runner.Description;
2327

2428
import javax.net.ssl.SSLContext;
2529
import java.io.IOException;
2630
import java.security.NoSuchAlgorithmException;
2731
import java.util.Arrays;
32+
import java.util.Date;
2833
import java.util.Map;
2934
import java.util.UUID;
3035
import java.util.concurrent.TimeoutException;
@@ -33,6 +38,26 @@
3338

3439
public class BrokerTestCase {
3540

41+
@Rule
42+
public TestRule watcher = new TestWatcher() {
43+
protected void starting(Description description) {
44+
System.out.println(String.format(
45+
"Starting test %s.%s (%s)",
46+
description.getTestClass().getSimpleName(), description.getMethodName(),
47+
new Date().toString()
48+
));
49+
}
50+
51+
@Override
52+
protected void finished(Description description) {
53+
System.out.println(String.format(
54+
"Test finished %s.%s (%s)",
55+
description.getTestClass().getSimpleName(), description.getMethodName(),
56+
new Date().toString()
57+
));
58+
}
59+
};
60+
3661
protected ConnectionFactory connectionFactory = newConnectionFactory();
3762

3863
protected ConnectionFactory newConnectionFactory() {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy