@Test public void testCreateMapMessage() throws JMSException { AmqpJmsMessageFactory factory = new AmqpJmsMessageFactory(createMockAmqpConnection()); JmsMapMessage message = factory.createMapMessage(); JmsMapMessageFacade facade = (JmsMapMessageFacade) message.getFacade(); assertTrue(facade instanceof AmqpJmsMapMessageFacade); AmqpJmsMapMessageFacade amqpMessage = (AmqpJmsMapMessageFacade) facade; assertEquals(JMS_MAP_MESSAGE, amqpMessage.getJmsMsgType()); assertFalse(amqpMessage.getMapNames().hasMoreElements()); }
@Override public JmsMapMessage createMapMessage() throws JMSException { AmqpJmsMapMessageFacade facade = new AmqpJmsMapMessageFacade(); facade.initialize(connection); return facade.asJmsMessage(); }
AmqpJmsMessageFactory implements JmsMessageFactory { @Override public JmsMapMessage createMapMessage() throws JMSException { AmqpJmsMapMessageFacade facade = new AmqpJmsMapMessageFacade(); facade.initialize(connection); return facade.asJmsMessage(); } }
AmqpJmsMessageFactory implements JmsMessageFactory { @Override public JmsMapMessage createMapMessage() throws JMSException { AmqpJmsMapMessageFacade facade = new AmqpJmsMapMessageFacade(); facade.initialize(connection); return facade.asJmsMessage(); } AmqpJmsMessageFactory(AmqpConnection connection); }
AmqpJmsMessageFactory implements JmsMessageFactory { @Override public JmsMapMessage createMapMessage() throws JMSException { AmqpJmsMapMessageFacade facade = new AmqpJmsMapMessageFacade(); facade.initialize(connection); return facade.asJmsMessage(); } AmqpJmsMessageFactory(AmqpConnection connection); AmqpConnection getAmqpConnection(); @Override JmsMessage createMessage(); @Override JmsTextMessage createTextMessage(); @Override JmsTextMessage createTextMessage(String payload); @Override JmsBytesMessage createBytesMessage(); @Override JmsMapMessage createMapMessage(); @Override JmsStreamMessage createStreamMessage(); @Override JmsObjectMessage createObjectMessage(); @Override JmsObjectMessage createObjectMessage(Serializable payload); }
AmqpJmsMessageFactory implements JmsMessageFactory { @Override public JmsMapMessage createMapMessage() throws JMSException { AmqpJmsMapMessageFacade facade = new AmqpJmsMapMessageFacade(); facade.initialize(connection); return facade.asJmsMessage(); } AmqpJmsMessageFactory(AmqpConnection connection); AmqpConnection getAmqpConnection(); @Override JmsMessage createMessage(); @Override JmsTextMessage createTextMessage(); @Override JmsTextMessage createTextMessage(String payload); @Override JmsBytesMessage createBytesMessage(); @Override JmsMapMessage createMapMessage(); @Override JmsStreamMessage createStreamMessage(); @Override JmsObjectMessage createObjectMessage(); @Override JmsObjectMessage createObjectMessage(Serializable payload);  }