File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
src/test/java/com/rabbitmq/client/test Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 20
20
import com .rabbitmq .tools .Host ;
21
21
import org .junit .After ;
22
22
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 ;
23
27
24
28
import javax .net .ssl .SSLContext ;
25
29
import java .io .IOException ;
26
30
import java .security .NoSuchAlgorithmException ;
27
31
import java .util .Arrays ;
32
+ import java .util .Date ;
28
33
import java .util .Map ;
29
34
import java .util .UUID ;
30
35
import java .util .concurrent .TimeoutException ;
33
38
34
39
public class BrokerTestCase {
35
40
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
+
36
61
protected ConnectionFactory connectionFactory = newConnectionFactory ();
37
62
38
63
protected ConnectionFactory newConnectionFactory () {
You can’t perform that action at this time.
0 commit comments