@@ -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