001 package com.mockrunner.mock.jms; 002 003 import javax.jms.JMSException; 004 import javax.jms.Message; 005 import javax.jms.Queue; 006 import javax.jms.QueueSender; 007 008 /** 009 * Mock implementation of JMS <code>QueueSender</code>. 010 */ 011 public class MockQueueSender extends MockMessageProducer implements QueueSender 012 { 013 public MockQueueSender(MockConnection connection, MockSession session, MockQueue queue) 014 { 015 super(connection, session, queue); 016 } 017 018 public Queue getQueue() throws JMSException 019 { 020 return (Queue)getDestination(); 021 } 022 023 public void send(Message message) throws JMSException 024 { 025 super.send(message); 026 } 027 028 public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException 029 { 030 super.send(message, deliveryMode, priority, timeToLive); 031 } 032 033 public void send(Queue queue, Message message) throws JMSException 034 { 035 super.send(queue, message); 036 } 037 038 public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException 039 { 040 super.send(queue, message, deliveryMode, priority, timeToLive); 041 } 042 }