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
503504505506507508509510511512513
AMQMessage message = createMessage("a.b.c"); try { _exchange.route(message); message.routingComplete(_store, _context, new MessageHandleFactory()); fail("Message has route and should not be routed"); } catch (AMQException nre) { }
388389390391392393394395396397398
fail(e.getMessage()); } try { currentMessage.routingComplete(_virtualHost.getMessageStore(), new MessageHandleFactory()); } catch (AMQException e) { fail(e.getMessage()); }
385386387388389390391392393394395