@@ -67,6 +67,7 @@ public void testQueueExclusiveForPassiveDeclare() throws Exception {
6767 try {
6868 channel .queueDeclarePassive (q );
6969 } catch (IOException ioe ) {
70+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
7071 return ;
7172 }
7273 fail ("Passive queue declaration of an exclusive queue from another connection should fail" );
@@ -78,6 +79,7 @@ public void testQueueExclusiveForDeclare() throws Exception {
7879 try {
7980 channel .queueDeclare (q , false , true , false , noArgs );
8081 } catch (IOException ioe ) {
82+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
8183 return ;
8284 }
8385 fail ("Active queue declaration of an exclusive queue from another connection should fail" );
@@ -88,6 +90,7 @@ public void testQueueExclusiveForConsume() throws Exception {
8890 try {
8991 channel .basicConsume (q , c );
9092 } catch (IOException ioe ) {
93+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
9194 return ;
9295 }
9396 fail ("Exclusive queue should be locked for basic consume from another connection" );
@@ -97,6 +100,7 @@ public void testQueueExclusiveForPurge() throws Exception {
97100 try {
98101 channel .queuePurge (q );
99102 } catch (IOException ioe ) {
103+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
100104 return ;
101105 }
102106 fail ("Exclusive queue should be locked for queue purge from another connection" );
@@ -106,6 +110,7 @@ public void testQueueExclusiveForDelete() throws Exception {
106110 try {
107111 channel .queueDelete (q );
108112 } catch (IOException ioe ) {
113+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
109114 return ;
110115 }
111116 fail ("Exclusive queue should be locked for queue delete from another connection" );
@@ -115,6 +120,7 @@ public void testQueueExclusiveForBind() throws Exception {
115120 try {
116121 channel .queueBind (q , "" , "" ); // NB uses default exchange
117122 } catch (IOException ioe ) {
123+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
118124 return ;
119125 }
120126 fail ("Exclusive queue should be locked for queue bind from another connection" );
@@ -132,6 +138,7 @@ public void testQueueExclusiveForUnbind() throws Exception {
132138 try {
133139 channel .queueUnbind (q , "" , "" );
134140 } catch (IOException ioe ) {
141+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
135142 return ;
136143 }
137144 fail ("Exclusive queue should be locked for queue unbind from another connection" );
@@ -141,6 +148,7 @@ public void testQueueExclusiveForGet() throws Exception {
141148 try {
142149 channel .basicGet (q , true );
143150 } catch (IOException ioe ) {
151+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
144152 return ;
145153 }
146154 fail ("Exclusive queue should be locked for basic get from another connection" );
0 commit comments