File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
test/src/com/rabbitmq/client/test Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,15 @@ protected void releaseResources()
8282 protected void restart ()
8383 throws IOException {
8484 tearDown ();
85- Host . executeCommand ( "cd ../rabbitmq-test; make restart-app" );
85+ bareRestart ( );
8686 setUp ();
8787 }
8888
89+ protected void bareRestart ()
90+ throws IOException {
91+ Host .executeCommand ("cd ../rabbitmq-test; make restart-app" );
92+ }
93+
8994 public void openConnection ()
9095 throws IOException {
9196 if (connection == null ) {
Original file line number Diff line number Diff line change 1+ package com .rabbitmq .client .test .server ;
2+
3+ import com .rabbitmq .client .test .BrokerTestCase ;
4+ import com .rabbitmq .client .AMQP ;
5+ import com .rabbitmq .client .Channel ;
6+ import com .rabbitmq .client .Connection ;
7+
8+ import java .io .IOException ;
9+
10+ public class Shutdown extends BrokerTestCase {
11+
12+ public void testErrorOnShutdown () throws Exception {
13+ bareRestart ();
14+ expectError (AMQP .CONNECTION_FORCED );
15+ }
16+
17+ }
You can’t perform that action at this time.
0 commit comments