4040import java .util .Map ;
4141import java .util .HashMap ;
4242
43- public class UnroutableMessageExchange extends BrokerTestCase
43+ public class AlternateExchange extends BrokerTestCase
4444{
4545
4646 static private String [] resources = new String []{"x" ,"u" ,"v" };
@@ -83,17 +83,17 @@ public void handleBasicReturn(int replyCode,
8383 }
8484 }
8585
86- protected void setupRouting (String x , String ume ) throws IOException {
86+ protected void setupRouting (String x , String ae ) throws IOException {
8787 Map <String , Object > args = new HashMap <String , Object >();
88- if (ume != null ) args .put ("ume " , ume );
88+ if (ae != null ) args .put ("alternate-exchange " , ae );
8989 channel .exchangeDeclare (x , "direct" , false , false , false , args );
9090 channel .queueBind (x , x , x );
9191 }
9292
9393 protected void publish (String key , boolean mandatory , boolean immediate )
9494 throws IOException {
9595 channel .basicPublish ("x" , key , mandatory , immediate , null ,
96- "ume -test" .getBytes ());
96+ "ae -test" .getBytes ());
9797 }
9898
9999 protected void publish (String key ) throws IOException {
@@ -132,9 +132,9 @@ protected void check(String key, boolean ret) throws IOException {
132132 check (key , false , false , ret );
133133 }
134134
135- public void testUme () throws IOException {
135+ public void testAe () throws IOException {
136136
137- //check various cases of missing UMEs - we expect to see some
137+ //check various cases of missing AEs - we expect to see some
138138 //warnings in the server logs
139139
140140 boolean unrouted [] = new boolean [] {false , false , false };
@@ -151,7 +151,7 @@ public void testUme() throws IOException {
151151 check ("v" , false ); //no warning
152152 check ("z" , unrouted , false ); //no warning
153153
154- //routing with UMEs in place
154+ //routing with AEs in place
155155 for (String k : keys ) {
156156 //ordinary
157157 check (k , false );
0 commit comments