test_class.file: sensor/src/test/java/com/oneops/sensor/jms/OpsEventPublisherTest.java
test_class.identifier: OpsEventPublisherTest
test_case.body: @Test
  	/** test cleanup without having set up the connection*/
  	public void cleanupTest(){
  		OpsEventPublisher oep = new OpsEventPublisher();
  		//we did not call init, so we are setting him up for 
  		//an exception, if he swallows it as expected we exit clean
  		//if the exception escapes test will fail
  		oep.cleanup();
  		
  	}
test_case.class_method_signature: OpsEventPublisherTest.cleanupTest()
test_case.full_signature: @Test /** test cleanup without having set up the connection*/ public void cleanupTest()
test_case.identifier: cleanupTest
test_case.invocations: cleanup
test_case.modifiers: @Test /** test cleanup without having set up the connection*/ public
test_case.parameters: ()
test_case.return: void
test_case.signature: void cleanupTest()
focal_class.declarator: logger = Logger.getLogger(OpsEventPublisher.class)
focal_class.modifier: static
focal_class.original_string: static Logger logger = Logger.getLogger(OpsEventPublisher.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: gson = new Gson()
focal_class.modifier: private
focal_class.original_string: private Gson gson = new Gson();
focal_class.type: Gson
focal_class.var_name: gson
focal_class.declarator: connectionFactory
focal_class.modifier: private
focal_class.original_string: private ActiveMQConnectionFactory connectionFactory;
focal_class.type: ActiveMQConnectionFactory
focal_class.var_name: connectionFactory
focal_class.declarator: queue = "ops-ci-states"
focal_class.modifier: private
focal_class.original_string: private String queue = "ops-ci-states";
focal_class.type: String
focal_class.var_name: queue
focal_class.declarator: persistent = true
focal_class.modifier: private
focal_class.original_string: private boolean persistent = true;
focal_class.type: boolean
focal_class.var_name: persistent
focal_class.declarator: timeToLive = 0
focal_class.modifier: private
focal_class.original_string: private long timeToLive = 0;
focal_class.type: long
focal_class.var_name: timeToLive
focal_class.declarator: connection = null
focal_class.modifier: private
focal_class.original_string: private Connection connection = null;
focal_class.type: Connection
focal_class.var_name: connection
focal_class.declarator: session = null
focal_class.modifier: private
focal_class.original_string: private Session session = null;
focal_class.type: Session
focal_class.var_name: session
focal_class.declarator: producer = null
focal_class.modifier: private
focal_class.original_string: private MessageProducer producer = null;
focal_class.type: MessageProducer
focal_class.var_name: producer
focal_class.file: sensor/src/main/java/com/oneops/sensor/jms/OpsEventPublisher.java
focal_class.identifier: OpsEventPublisher
focal_class.class_method_signature: OpsEventPublisher.setConnectionFactory(ActiveMQConnectionFactory connectionFactory)
focal_class.full_signature: public void setConnectionFactory(ActiveMQConnectionFactory connectionFactory)
focal_class.identifier: setConnectionFactory
focal_class.modifiers: public
focal_class.parameters: (ActiveMQConnectionFactory connectionFactory)
focal_class.return: void
focal_class.signature: void setConnectionFactory(ActiveMQConnectionFactory connectionFactory)
focal_class.class_method_signature: OpsEventPublisher.setQueue(String queue)
focal_class.full_signature: public void setQueue(String queue)
focal_class.identifier: setQueue
focal_class.modifiers: public
focal_class.parameters: (String queue)
focal_class.return: void
focal_class.signature: void setQueue(String queue)
focal_class.class_method_signature: OpsEventPublisher.setPersistent(boolean persistent)
focal_class.full_signature: public void setPersistent(boolean persistent)
focal_class.identifier: setPersistent
focal_class.modifiers: public
focal_class.parameters: (boolean persistent)
focal_class.return: void
focal_class.signature: void setPersistent(boolean persistent)
focal_class.class_method_signature: OpsEventPublisher.setTimeToLive(long timeToLive)
focal_class.full_signature: public void setTimeToLive(long timeToLive)
focal_class.identifier: setTimeToLive
focal_class.modifiers: public
focal_class.parameters: (long timeToLive)
focal_class.return: void
focal_class.signature: void setTimeToLive(long timeToLive)
focal_class.class_method_signature: OpsEventPublisher.init()
focal_class.full_signature: public void init()
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: OpsEventPublisher.publishCiStateMessage(CiChangeStateEvent event)
focal_class.full_signature: public void publishCiStateMessage(CiChangeStateEvent event)
focal_class.identifier: publishCiStateMessage
focal_class.modifiers: public
focal_class.parameters: (CiChangeStateEvent event)
focal_class.return: void
focal_class.signature: void publishCiStateMessage(CiChangeStateEvent event)
focal_class.class_method_signature: OpsEventPublisher.cleanup()
focal_class.full_signature: public void cleanup()
focal_class.identifier: cleanup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanup()
focal_class.class_method_signature: OpsEventPublisher.closeConnection()
focal_class.full_signature: public void closeConnection()
focal_class.identifier: closeConnection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeConnection()
focal_method.body: public void cleanup() {
      	logger.info("Closing AMQ connection");
      	closeConnection();
      }
focal_method.class_method_signature: OpsEventPublisher.cleanup()
focal_method.full_signature: public void cleanup()
focal_method.identifier: cleanup
focal_method.invocations: info closeConnection
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void cleanup()