@@ -67,6 +67,7 @@ public void testQueueExclusiveForPassiveDeclare() throws Exception {
67
67
try {
68
68
channel .queueDeclarePassive (q );
69
69
} catch (IOException ioe ) {
70
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
70
71
return ;
71
72
}
72
73
fail ("Passive queue declaration of an exclusive queue from another connection should fail" );
@@ -78,6 +79,7 @@ public void testQueueExclusiveForDeclare() throws Exception {
78
79
try {
79
80
channel .queueDeclare (q , false , true , false , noArgs );
80
81
} catch (IOException ioe ) {
82
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
81
83
return ;
82
84
}
83
85
fail ("Active queue declaration of an exclusive queue from another connection should fail" );
@@ -88,6 +90,7 @@ public void testQueueExclusiveForConsume() throws Exception {
88
90
try {
89
91
channel .basicConsume (q , c );
90
92
} catch (IOException ioe ) {
93
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
91
94
return ;
92
95
}
93
96
fail ("Exclusive queue should be locked for basic consume from another connection" );
@@ -97,6 +100,7 @@ public void testQueueExclusiveForPurge() throws Exception {
97
100
try {
98
101
channel .queuePurge (q );
99
102
} catch (IOException ioe ) {
103
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
100
104
return ;
101
105
}
102
106
fail ("Exclusive queue should be locked for queue purge from another connection" );
@@ -106,6 +110,7 @@ public void testQueueExclusiveForDelete() throws Exception {
106
110
try {
107
111
channel .queueDelete (q );
108
112
} catch (IOException ioe ) {
113
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
109
114
return ;
110
115
}
111
116
fail ("Exclusive queue should be locked for queue delete from another connection" );
@@ -115,6 +120,7 @@ public void testQueueExclusiveForBind() throws Exception {
115
120
try {
116
121
channel .queueBind (q , "" , "" ); // NB uses default exchange
117
122
} catch (IOException ioe ) {
123
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
118
124
return ;
119
125
}
120
126
fail ("Exclusive queue should be locked for queue bind from another connection" );
@@ -132,6 +138,7 @@ public void testQueueExclusiveForUnbind() throws Exception {
132
138
try {
133
139
channel .queueUnbind (q , "" , "" );
134
140
} catch (IOException ioe ) {
141
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
135
142
return ;
136
143
}
137
144
fail ("Exclusive queue should be locked for queue unbind from another connection" );
@@ -141,6 +148,7 @@ public void testQueueExclusiveForGet() throws Exception {
141
148
try {
142
149
channel .basicGet (q , true );
143
150
} catch (IOException ioe ) {
151
+ checkShutdownSignal (AMQP .RESOURCE_LOCKED , ioe );
144
152
return ;
145
153
}
146
154
fail ("Exclusive queue should be locked for basic get from another connection" );
0 commit comments