File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
java/com/rabbitmq/client/test Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 60
60
<jackson .version>2.9.8</jackson .version>
61
61
<logback .version>1.2.3</logback .version>
62
62
<junit .version>4.12</junit .version>
63
- <awaitility .version>3.1.0 </awaitility .version>
64
- <mockito .version>2.21.0 </mockito .version>
63
+ <awaitility .version>3.1.5 </awaitility .version>
64
+ <mockito .version>2.23.4 </mockito .version>
65
65
66
66
<maven .javadoc.plugin.version>3.0.1</maven .javadoc.plugin.version>
67
67
<maven .release.plugin.version>2.5.3</maven .release.plugin.version>
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class ConnectionTest {
39
39
@ Parameterized .Parameter
40
40
public TestConfigurator configurator ;
41
41
@ Mock
42
- Connection c = mock (Connection .class );
42
+ MyConnection c = mock (MyConnection .class );
43
43
@ Mock
44
44
Channel ch = mock (Channel .class );
45
45
@@ -124,4 +124,9 @@ public Optional<Channel> open(Connection c) throws IOException {
124
124
}
125
125
}
126
126
127
+ // trick to make Mockito call the optional method defined in the interface
128
+ static abstract class MyConnection implements Connection {
129
+
130
+ }
131
+
127
132
}
Original file line number Diff line number Diff line change
1
+ status = error
2
+ dest = err
3
+ name = PropertiesConfig
4
+
5
+ appender.console.type = Console
6
+ appender.console.name = STDOUT
7
+ appender.console.layout.type = PatternLayout
8
+ appender.console.layout.pattern = %m%n
9
+
10
+ logger.com.rabbitmq.level = info
11
+ rootLogger.level = error
12
+ rootLogger.appenderRef.stdout.ref = STDOUT
You can’t perform that action at this time.
0 commit comments