Skip to content

Commit 3455f32

Browse files
author
Matthew Sackman
committed
Make java client compile
1 parent 898531f commit 3455f32

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ public InetAddress getAddress() {
167167
public int getPort() {
168168
return -1;
169169
}
170+
171+
public void flush() throws IOException {
172+
// no need to implement this: don't bother writing the frame
173+
}
170174
}
171175

172176
/** Mock frame handler to facilitate testing. */

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ public InetAddress getAddress() {
153153
public int getPort() {
154154
return -1;
155155
}
156+
157+
@Override
158+
public void flush() throws IOException {
159+
// no need to implement this: don't bother writing the frame
160+
}
156161
}
157162

158163
}

0 commit comments

Comments
 (0)