com.mockrunner.mock.jms.MockTemporaryQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockrunner-jms Show documentation
Show all versions of mockrunner-jms Show documentation
Mock classes for Java Messaging System
package com.mockrunner.mock.jms;
import java.io.Serializable;
import javax.jms.JMSException;
import javax.jms.TemporaryQueue;
/**
* Mock implementation of JMS TemporaryQueue
.
*/
public class MockTemporaryQueue extends MockQueue implements TemporaryQueue
{
private boolean deleted;
public MockTemporaryQueue()
{
super("TemporaryQueue");
deleted = false;
}
/**
* Returns if this temporary queue is deleted.
* @return true
if this queue is deleted
*/
public boolean isDeleted()
{
return deleted;
}
public void delete() throws JMSException
{
deleted = true;
}
}