93949596979899100101102103
AMQMessage message = createMessage("a.b"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has route and should be routed"); }
113114115116117118119120121122123
message = createMessage("a.c"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); fail("Message has no route and should fail to be routed"); } catch (AMQException nre) { }
135136137138139140141142143144145
155156157158159160161162163164165
message = createMessage("a.c"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has route and should be routed"); }
175176177178179180181182183184185
message = createMessage("a"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); fail("Message has no route and should fail to be routed"); } catch (AMQException nre) { }
196197198199200201202203204205206
AMQMessage message = createMessage("a.b.c"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has route and should be routed"); }
216217218219220221222223224225226
message = createMessage("a.b"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has route and should be routed"); }
236237238239240241242243244245246
255256257258259260261262263264265
message = createMessage("a"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has route and should be routed"); }
275276277278279280281282283284285
message = createMessage("b"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); fail("Message has no route and should fail to be routed"); } catch (AMQException nre) { }