Skip to content

Commit 8e75417

Browse files
author
Matthias Radestock
committed
untabify
1 parent 03423eb commit 8e75417

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ public void closeChannel()
125125
}
126126

127127
public void checkShutdownSignal(int expectedCode, IOException ioe) {
128-
ShutdownSignalException sse = (ShutdownSignalException) ioe.getCause();
129-
Command closeCommand = (Command) sse.getReason();
130-
channel = null;
131-
if (sse.isHardError()) {
132-
connection = null;
133-
AMQP.Connection.Close closeMethod = (AMQP.Connection.Close) closeCommand.getMethod();
134-
assertEquals(expectedCode, closeMethod.getReplyCode());
135-
} else {
136-
AMQP.Channel.Close closeMethod = (AMQP.Channel.Close) closeCommand.getMethod();
137-
assertEquals(expectedCode, closeMethod.getReplyCode());
138-
}
128+
ShutdownSignalException sse = (ShutdownSignalException) ioe.getCause();
129+
Command closeCommand = (Command) sse.getReason();
130+
channel = null;
131+
if (sse.isHardError()) {
132+
connection = null;
133+
AMQP.Connection.Close closeMethod = (AMQP.Connection.Close) closeCommand.getMethod();
134+
assertEquals(expectedCode, closeMethod.getReplyCode());
135+
} else {
136+
AMQP.Channel.Close closeMethod = (AMQP.Channel.Close) closeCommand.getMethod();
137+
assertEquals(expectedCode, closeMethod.getReplyCode());
138+
}
139139
}
140140
}

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,23 @@ protected void tearDown()
6464
}
6565

6666
public void fill(int n)
67-
throws IOException
67+
throws IOException
6868
{
69-
for (int i = 0; i < n; i++) {
70-
channel.basicPublish("amq.fanout", "", null,
69+
for (int i = 0; i < n; i++) {
70+
channel.basicPublish("amq.fanout", "", null,
7171
Integer.toString(i).getBytes());
72-
}
72+
}
7373
}
7474

7575
/**
7676
* receive n messages - check that we receive no fewer and cannot
7777
* receive more
7878
**/
7979
public Queue<Delivery> drain(QueueingConsumer c, int n)
80-
throws IOException
80+
throws IOException
8181
{
8282
Queue<Delivery> res = new LinkedList<Delivery>();
83-
try {
83+
try {
8484
long start = System.currentTimeMillis();
8585
for (int i = 0; i < n; i++) {
8686
Delivery d = c.nextDelivery(1000);
@@ -90,37 +90,37 @@ public Queue<Delivery> drain(QueueingConsumer c, int n)
9090
long finish = System.currentTimeMillis();
9191
Thread.sleep( (n == 0 ? 0 : (finish - start) / n) + 10 );
9292
assertNull(c.nextDelivery(0));
93-
} catch (InterruptedException ie) {
94-
fail("interrupted");
95-
}
93+
} catch (InterruptedException ie) {
94+
fail("interrupted");
95+
}
9696
return res;
9797
}
9898

9999
public void testMessageLimitGlobalFails()
100-
throws IOException
100+
throws IOException
101101
{
102-
try {
103-
channel.basicQos(0, 1, true);
104-
} catch (IOException ioe) {
105-
checkShutdownSignal(AMQP.NOT_IMPLEMENTED, ioe);
106-
}
102+
try {
103+
channel.basicQos(0, 1, true);
104+
} catch (IOException ioe) {
105+
checkShutdownSignal(AMQP.NOT_IMPLEMENTED, ioe);
106+
}
107107
}
108108

109109
public void testMessageLimitPrefetchSizeFails()
110-
throws IOException
110+
throws IOException
111111
{
112-
try {
113-
channel.basicQos(1000, 0, false);
114-
} catch (IOException ioe) {
115-
checkShutdownSignal(AMQP.NOT_IMPLEMENTED, ioe);
116-
}
112+
try {
113+
channel.basicQos(1000, 0, false);
114+
} catch (IOException ioe) {
115+
checkShutdownSignal(AMQP.NOT_IMPLEMENTED, ioe);
116+
}
117117
}
118118

119119
public void testMessageLimitUnlimited()
120-
throws IOException
120+
throws IOException
121121
{
122122
QueueingConsumer c = new QueueingConsumer(channel);
123-
configure(c, 0, 1, 2);
123+
configure(c, 0, 1, 2);
124124
drain(c, 2);
125125
}
126126

0 commit comments

Comments
 (0)