@Test public void testExtractTextMessageTypeAttributes() throws JMSException { TextMessage txtMessage = mock(TextMessage.class); when(txtMessage.getText()).thenReturn("test-text"); Operation op = new Operation(); extractMessageTypeAttributes(op, txtMessage); String type = op.get(MESSAGE_TYPE, String.class); String content = op.get(MESSAGE_CONTENT, String.class); assertEquals(MessageType.TextMessage.name(), type); assertEquals("test-text", content); assertNull(op.get(MESSAGE_CONTENT_MAP)); }
static void extractMessageTypeAttributes(Operation op, Message message) throws JMSException { MessageType messageType = MessageType.getType(message); messageType.handleMessage(message, op); }
JMSPluginUtils { static void extractMessageTypeAttributes(Operation op, Message message) throws JMSException { MessageType messageType = MessageType.getType(message); messageType.handleMessage(message, op); } }
JMSPluginUtils { static void extractMessageTypeAttributes(Operation op, Message message) throws JMSException { MessageType messageType = MessageType.getType(message); messageType.handleMessage(message, op); } private  JMSPluginUtils(); }
JMSPluginUtils { static void extractMessageTypeAttributes(Operation op, Message message) throws JMSException { MessageType messageType = MessageType.getType(message); messageType.handleMessage(message, op); } private  JMSPluginUtils();  }
JMSPluginUtils { static void extractMessageTypeAttributes(Operation op, Message message) throws JMSException { MessageType messageType = MessageType.getType(message); messageType.handleMessage(message, op); } private  JMSPluginUtils();   }