@Test public void testJMSDestinationInGetAllPropertyNames() throws JMSException { JmsMessageFacade facade = Mockito.mock(JmsMessageFacade.class); JmsMessage message = Mockito.mock(JmsMapMessage.class); Mockito.when(message.getFacade()).thenReturn(facade); assertTrue(JmsMessagePropertyIntercepter.getAllPropertyNames(message).contains(JMS_DESTINATION)); }
public static Set<String> getAllPropertyNames(JmsMessage message) throws JMSException { Set<String> names = new HashSet<String>(PROPERTY_INTERCEPTERS.keySet()); names.addAll(message.getFacade().getPropertyNames()); return names; }
JmsMessagePropertyIntercepter { public static Set<String> getAllPropertyNames(JmsMessage message) throws JMSException { Set<String> names = new HashSet<String>(PROPERTY_INTERCEPTERS.keySet()); names.addAll(message.getFacade().getPropertyNames()); return names; } }
JmsMessagePropertyIntercepter { public static Set<String> getAllPropertyNames(JmsMessage message) throws JMSException { Set<String> names = new HashSet<String>(PROPERTY_INTERCEPTERS.keySet()); names.addAll(message.getFacade().getPropertyNames()); return names; }  }
JmsMessagePropertyIntercepter { public static Set<String> getAllPropertyNames(JmsMessage message) throws JMSException { Set<String> names = new HashSet<String>(PROPERTY_INTERCEPTERS.keySet()); names.addAll(message.getFacade().getPropertyNames()); return names; }  static Object getProperty(JmsMessage message, String name); static void setProperty(JmsMessage message, String name, Object value); static boolean propertyExists(JmsMessage message, String name); static void clearProperties(JmsMessage message, boolean excludeStandardJMSHeaders); static Set<String> getAllPropertyNames(JmsMessage message); static Set<String> getPropertyNames(JmsMessage message, boolean excludeStandardJMSHeaders); }
JmsMessagePropertyIntercepter { public static Set<String> getAllPropertyNames(JmsMessage message) throws JMSException { Set<String> names = new HashSet<String>(PROPERTY_INTERCEPTERS.keySet()); names.addAll(message.getFacade().getPropertyNames()); return names; }  static Object getProperty(JmsMessage message, String name); static void setProperty(JmsMessage message, String name, Object value); static boolean propertyExists(JmsMessage message, String name); static void clearProperties(JmsMessage message, boolean excludeStandardJMSHeaders); static Set<String> getAllPropertyNames(JmsMessage message); static Set<String> getPropertyNames(JmsMessage message, boolean excludeStandardJMSHeaders);  }