test_class.declarator: jmsConfig
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private JmsConfig jmsConfig;
test_class.type: JmsConfig
test_class.var_name: jmsConfig
test_class.declarator: defaultJmsListenerContainerFactory
test_class.modifier: @MockBean
  	private
test_class.original_string: @MockBean
  	private DefaultJmsListenerContainerFactory defaultJmsListenerContainerFactory;
test_class.type: DefaultJmsListenerContainerFactory
test_class.var_name: defaultJmsListenerContainerFactory
test_class.declarator: mapper
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private ObjectMapper mapper;
test_class.type: ObjectMapper
test_class.var_name: mapper
test_class.declarator: ratesStompHandler
test_class.modifier: @MockBean
  	private
test_class.original_string: @MockBean
  	private RatesStompHandler ratesStompHandler;
test_class.type: RatesStompHandler
test_class.var_name: ratesStompHandler
test_class.file: trading-webapp/src/test/java/fr/ymanvieu/trading/webapp/config/JmsConfigTest.java
test_class.identifier: JmsConfigTest
test_case.body: @Test
  	public void testReceiveMessage() throws Exception {
  		// GIVEN
  		Symbol from = new Symbol("FROM", "from", "fcountry", null);
  		Symbol to = new Symbol("TO", "to", "tcountry", null);
  
  		RatesUpdatedEvent event = new RatesUpdatedEvent()
  				.setRates(List.of(new Rate(from, to, new BigDecimal("25.5"), parse("2017-09-23T19:11:01+02:00"))));
  
  		
  		// WHEN
  		jmsConfig.receiveMessage(event);
  		
  		// THEN
  		verify(ratesStompHandler).send(any());
  	}
test_case.class_method_signature: JmsConfigTest.testReceiveMessage()
test_case.full_signature: @Test public void testReceiveMessage()
test_case.identifier: testReceiveMessage
test_case.invocations: setRates of parse receiveMessage send verify any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReceiveMessage()
focal_class.declarator: bus
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ApplicationEventPublisher bus;
focal_class.type: ApplicationEventPublisher
focal_class.var_name: bus
focal_class.file: trading-webapp/src/main/java/fr/ymanvieu/trading/webapp/config/JmsConfig.java
focal_class.identifier: JmsConfig
focal_class.class_method_signature: JmsConfig.jacksonJmsMessageConverter(ObjectMapper mapper)
focal_class.full_signature: @Bean // Serialize message content to json using TextMessage public MessageConverter jacksonJmsMessageConverter(ObjectMapper mapper)
focal_class.identifier: jacksonJmsMessageConverter
focal_class.modifiers: @Bean // Serialize message content to json using TextMessage public
focal_class.parameters: (ObjectMapper mapper)
focal_class.return: MessageConverter
focal_class.signature: MessageConverter jacksonJmsMessageConverter(ObjectMapper mapper)
focal_class.class_method_signature: JmsConfig.myFactory(DefaultJmsListenerContainerFactory factory)
focal_class.full_signature: @Bean public JmsListenerContainerFactory<?> myFactory(DefaultJmsListenerContainerFactory factory)
focal_class.identifier: myFactory
focal_class.modifiers: @Bean public
focal_class.parameters: (DefaultJmsListenerContainerFactory factory)
focal_class.return: JmsListenerContainerFactory<?>
focal_class.signature: JmsListenerContainerFactory<?> myFactory(DefaultJmsListenerContainerFactory factory)
focal_class.class_method_signature: JmsConfig.receiveMessage(RatesUpdatedEvent event)
focal_class.full_signature: @JmsListener(destination = "trading.rate.latest?consumer.retroactive=true") public void receiveMessage(RatesUpdatedEvent event)
focal_class.identifier: receiveMessage
focal_class.modifiers: @JmsListener(destination = "trading.rate.latest?consumer.retroactive=true") public
focal_class.parameters: (RatesUpdatedEvent event)
focal_class.return: void
focal_class.signature: void receiveMessage(RatesUpdatedEvent event)
focal_method.body: @JmsListener(destination = "trading.rate.latest?consumer.retroactive=true")
  	public void receiveMessage(RatesUpdatedEvent event) {
  		log.debug("Received: {}", event);
  		
  		bus.publishEvent(event);
  	}
focal_method.class_method_signature: JmsConfig.receiveMessage(RatesUpdatedEvent event)
focal_method.full_signature: @JmsListener(destination = "trading.rate.latest?consumer.retroactive=true") public void receiveMessage(RatesUpdatedEvent event)
focal_method.identifier: receiveMessage
focal_method.invocations: debug publishEvent
focal_method.modifiers: @JmsListener(destination = "trading.rate.latest?consumer.retroactive=true") public
focal_method.parameters: (RatesUpdatedEvent event)
focal_method.return: void
focal_method.signature: void receiveMessage(RatesUpdatedEvent event)