Skip to content

Commit c1d230d

Browse files
committed
make helper functions protected instead of private
1 parent 416be6c commit c1d230d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/src/com/rabbitmq/client/test/functional/ExchangeExchangeBindings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class ExchangeExchangeBindings extends BrokerTestCase {
5353
private QueueingConsumer[] consumers = new QueueingConsumer[] { null, null,
5454
null };
5555

56-
private void publishWithMarker(String x, String rk) throws IOException {
56+
protected void publishWithMarker(String x, String rk) throws IOException {
5757
basicPublishVolatile(x, rk);
5858
basicPublishVolatile(MARKER, x, rk);
5959
}
@@ -86,7 +86,7 @@ protected void releaseResources() throws IOException {
8686
}
8787
}
8888

89-
private void consumeNoDuplicates(QueueingConsumer consumer)
89+
protected void consumeNoDuplicates(QueueingConsumer consumer)
9090
throws ShutdownSignalException, InterruptedException {
9191
assertNotNull(consumer.nextDelivery(TIMEOUT));
9292
Delivery markerDelivery = consumer.nextDelivery(TIMEOUT);
@@ -217,7 +217,7 @@ public void testTopicExchange() throws IOException, ShutdownSignalException,
217217
channel.exchangeDelete("e");
218218
}
219219

220-
private void publishAndConsumeAll(String exchange)
220+
protected void publishAndConsumeAll(String exchange)
221221
throws IOException, ShutdownSignalException, InterruptedException {
222222

223223
for (String e : exchanges) {

test/src/com/rabbitmq/client/test/functional/ExchangeExchangeBindingsAutoDelete.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@
3838

3939
public class ExchangeExchangeBindingsAutoDelete extends BrokerTestCase {
4040

41-
private void declareExchanges(String[] names) throws IOException {
41+
protected void declareExchanges(String[] names) throws IOException {
4242
for (String e : names) {
4343
channel.exchangeDeclare(e, "fanout", false, true, null);
4444
}
4545
}
4646

47-
private void assertExchangesNotExist(String[] names) throws IOException {
47+
protected void assertExchangesNotExist(String[] names) throws IOException {
4848
for (String e : names) {
4949
assertExchangeNotExists(e);
5050
}
5151
}
5252

53-
private void assertExchangeNotExists(String name) throws IOException {
53+
protected void assertExchangeNotExists(String name) throws IOException {
5454
try {
5555
connection.createChannel().exchangeDeclarePassive(name);
5656
fail("Exchange " + name + " still exists.");

0 commit comments

Comments
 (0)