test_class.file: pooled-jms/src/test/java/org/messaginghub/pooled/jms/JmsPoolTopicSubscriberTest.java
test_class.identifier: JmsPoolTopicSubscriberTest
test_class.superclass: extends JmsPoolTestSupport
test_case.body: @Test
      public void testGetTopic() throws JMSException {
          JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection();
          TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
          Topic topic = session.createTemporaryTopic();
          TopicSubscriber subscriber = session.createSubscriber(topic);
  
          assertNotNull(subscriber.getTopic());
          assertSame(topic, subscriber.getTopic());
  
          subscriber.close();
  
          try {
              subscriber.getTopic();
              fail("Cannot read topic on closed subscriber");
          } catch (IllegalStateException ise) {}
      }
test_case.class_method_signature: JmsPoolTopicSubscriberTest.testGetTopic()
test_case.full_signature: @Test public void testGetTopic()
test_case.identifier: testGetTopic
test_case.invocations: createTopicConnection createTopicSession createTemporaryTopic createSubscriber assertNotNull getTopic assertSame getTopic close getTopic fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTopic()
focal_class.file: pooled-jms/src/main/java/org/messaginghub/pooled/jms/JmsPoolTopicSubscriber.java
focal_class.identifier: JmsPoolTopicSubscriber
focal_class.interfaces: implements TopicSubscriber, AutoCloseable
focal_class.class_method_signature: JmsPoolTopicSubscriber.JmsPoolTopicSubscriber(JmsPoolSession session, TopicSubscriber delegate)
focal_class.full_signature: public  JmsPoolTopicSubscriber(JmsPoolSession session, TopicSubscriber delegate)
focal_class.identifier: JmsPoolTopicSubscriber
focal_class.modifiers: public
focal_class.parameters: (JmsPoolSession session, TopicSubscriber delegate)
focal_class.signature:  JmsPoolTopicSubscriber(JmsPoolSession session, TopicSubscriber delegate)
focal_class.class_method_signature: JmsPoolTopicSubscriber.getTopic()
focal_class.full_signature: @Override public Topic getTopic()
focal_class.identifier: getTopic
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Topic
focal_class.signature: Topic getTopic()
focal_class.class_method_signature: JmsPoolTopicSubscriber.getNoLocal()
focal_class.full_signature: @Override public boolean getNoLocal()
focal_class.identifier: getNoLocal
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean getNoLocal()
focal_class.class_method_signature: JmsPoolTopicSubscriber.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_class.class_method_signature: JmsPoolTopicSubscriber.getTopicSubscriber()
focal_class.full_signature: public TopicSubscriber getTopicSubscriber()
focal_class.identifier: getTopicSubscriber
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TopicSubscriber
focal_class.signature: TopicSubscriber getTopicSubscriber()
focal_class.superclass: extends JmsPoolMessageConsumer
focal_method.body: @Override
      public Topic getTopic() throws JMSException {
          return getTopicSubscriber().getTopic();
      }
focal_method.class_method_signature: JmsPoolTopicSubscriber.getTopic()
focal_method.full_signature: @Override public Topic getTopic()
focal_method.identifier: getTopic
focal_method.invocations: getTopic getTopicSubscriber
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Topic
focal_method.signature: Topic getTopic()