[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Algorithm broken in WildcardAddressManager

timfox do-not-reply at jboss.com
Thu Jan 8 10:59:22 EST 2009


Here's another basic test that fails


  |       AddressManager am = new WildcardAddressManager();
  |       
  |       Binding binding1 = new MyBinding();
  |       
  |       am.addMapping(new SimpleString("a.b.*"), binding1);
  |       
  |       Bindings bindings = am.getBindings(new SimpleString("a.b.c"));
  |             
  |       assertTrue(bindings.getBindings().contains(binding1));
  |       
  |       Binding binding2 = new MyBinding();
  |       
  |       am.addMapping(new SimpleString("a.*"), binding2);
  |       
  |       bindings = am.getBindings(new SimpleString("a.b.c"));
  |       
  |       assertTrue(bindings.getBindings().contains(binding1));
  |       
  |       assertTrue(bindings.getBindings().contains(binding2));
  | 

Looks like your test coverage is currently patchy.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200381#4200381

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200381



More information about the jboss-dev-forums mailing list