297298299300301302303304305306307
AMQMessage message = createMessage("a.c.d.b"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has no route and should be routed"); }
316317318319320321322323324325326
message = createMessage("a.c.b"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has no route and should be routed"); }
343344345346347348349350351352353
AMQMessage message = createMessage("a.c.b.b"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); fail("Message has route and should not be routed"); } catch (AMQException nre) { }
358359360361362363364365366367368
message = createMessage("a.a.b.c"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has no route and should be routed"); }
377378379380381382383384385386387
message = createMessage("a.b.c.b"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); fail("Message has route and should not be routed"); } catch (AMQException nre) { }
391392393394395396397398399400401
message = createMessage("a.b.c.b.c"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has no route and should be routed");
420421422423424425426427428429430
AMQMessage message = createMessage("a.c.b.b.c"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); fail("Message has route and should not be routed"); } catch (AMQException nre) { }
435436437438439440441442443444445
message = createMessage("a.a.b.c.d"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); } catch (AMQException nre) { fail("Message has no route and should be routed"); }
462463464465466467468469470471472
476477478479480481482483484485486