test_class.declarator: context
test_class.modifier: private
test_class.original_string: private JmsPoolJMSContext context;
test_class.type: JmsPoolJMSContext
test_class.var_name: context
test_class.file: pooled-jms/src/test/java/org/messaginghub/pooled/jms/JmsPoolJMSConsumerTest.java
test_class.identifier: JmsPoolJMSConsumerTest
test_class.superclass: extends JmsPoolTestSupport
test_case.body: @Test
      public void testReceive() throws JMSException {
          JMSConsumer consumer = context.createConsumer(context.createTemporaryQueue());
  
          assertNull(consumer.receive());
  
          consumer.close();
  
          try {
              consumer.receive();
              fail("Should not be able to interact with closed consumer");
          } catch (IllegalStateRuntimeException ise) {}
      }
test_case.class_method_signature: JmsPoolJMSConsumerTest.testReceive()
test_case.full_signature: @Test public void testReceive()
test_case.identifier: testReceive
test_case.invocations: createConsumer createTemporaryQueue assertNull receive close receive fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReceive()
focal_class.declarator: consumer
focal_class.modifier: private final
focal_class.original_string: private final JmsPoolMessageConsumer consumer;
focal_class.type: JmsPoolMessageConsumer
focal_class.var_name: consumer
focal_class.file: pooled-jms/src/main/java/org/messaginghub/pooled/jms/JmsPoolJMSConsumer.java
focal_class.identifier: JmsPoolJMSConsumer
focal_class.interfaces: implements JMSConsumer, AutoCloseable
focal_class.class_method_signature: JmsPoolJMSConsumer.JmsPoolJMSConsumer(JmsPoolMessageConsumer consumer)
focal_class.full_signature: public  JmsPoolJMSConsumer(JmsPoolMessageConsumer consumer)
focal_class.identifier: JmsPoolJMSConsumer
focal_class.modifiers: public
focal_class.parameters: (JmsPoolMessageConsumer consumer)
focal_class.signature:  JmsPoolJMSConsumer(JmsPoolMessageConsumer consumer)
focal_class.class_method_signature: JmsPoolJMSConsumer.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: JmsPoolJMSConsumer.getMessageListener()
focal_class.full_signature: @Override public MessageListener getMessageListener()
focal_class.identifier: getMessageListener
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MessageListener
focal_class.signature: MessageListener getMessageListener()
focal_class.class_method_signature: JmsPoolJMSConsumer.getMessageSelector()
focal_class.full_signature: @Override public String getMessageSelector()
focal_class.identifier: getMessageSelector
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMessageSelector()
focal_class.class_method_signature: JmsPoolJMSConsumer.setMessageListener(MessageListener listener)
focal_class.full_signature: @Override public void setMessageListener(MessageListener listener)
focal_class.identifier: setMessageListener
focal_class.modifiers: @Override public
focal_class.parameters: (MessageListener listener)
focal_class.return: void
focal_class.signature: void setMessageListener(MessageListener listener)
focal_class.class_method_signature: JmsPoolJMSConsumer.receive()
focal_class.full_signature: @Override public Message receive()
focal_class.identifier: receive
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Message
focal_class.signature: Message receive()
focal_class.class_method_signature: JmsPoolJMSConsumer.receive(long timeout)
focal_class.full_signature: @Override public Message receive(long timeout)
focal_class.identifier: receive
focal_class.modifiers: @Override public
focal_class.parameters: (long timeout)
focal_class.return: Message
focal_class.signature: Message receive(long timeout)
focal_class.class_method_signature: JmsPoolJMSConsumer.receiveNoWait()
focal_class.full_signature: @Override public Message receiveNoWait()
focal_class.identifier: receiveNoWait
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Message
focal_class.signature: Message receiveNoWait()
focal_class.class_method_signature: JmsPoolJMSConsumer.receiveBody(Class<T> desired)
focal_class.full_signature: @Override public T receiveBody(Class<T> desired)
focal_class.identifier: receiveBody
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> desired)
focal_class.return: T
focal_class.signature: T receiveBody(Class<T> desired)
focal_class.class_method_signature: JmsPoolJMSConsumer.receiveBody(Class<T> desired, long timeout)
focal_class.full_signature: @Override public T receiveBody(Class<T> desired, long timeout)
focal_class.identifier: receiveBody
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> desired, long timeout)
focal_class.return: T
focal_class.signature: T receiveBody(Class<T> desired, long timeout)
focal_class.class_method_signature: JmsPoolJMSConsumer.receiveBodyNoWait(Class<T> desired)
focal_class.full_signature: @Override public T receiveBodyNoWait(Class<T> desired)
focal_class.identifier: receiveBodyNoWait
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> desired)
focal_class.return: T
focal_class.signature: T receiveBodyNoWait(Class<T> desired)
focal_class.class_method_signature: JmsPoolJMSConsumer.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      public Message receive() {
          try {
              return consumer.receive();
          } catch (JMSException e) {
              throw JMSExceptionSupport.createRuntimeException(e);
          }
      }
focal_method.class_method_signature: JmsPoolJMSConsumer.receive()
focal_method.full_signature: @Override public Message receive()
focal_method.identifier: receive
focal_method.invocations: receive createRuntimeException
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Message
focal_method.signature: Message receive()