@Test public void testJmsAmqpTypedEncodingNotInPropertyNamesWhenNotSet() throws JMSException { AmqpJmsObjectMessageFacade message = createAmqpObjectMessageFacade(); Mockito.when(message.isAmqpTypedEncoding()).thenReturn(false); assertFalse(AmqpJmsMessagePropertyIntercepter.getPropertyNames(message).contains(JMS_AMQP_TYPED_ENCODING)); }
public static Set<String> getPropertyNames(AmqpJmsMessageFacade message) { Set<String> names = new HashSet<String>(); for (Entry<String, PropertyIntercepter> entry : PROPERTY_INTERCEPTERS.entrySet()) { if (entry.getValue().propertyExists(message)) { names.add(entry.getKey()); } } return message.getApplicationPropertyNames(names); }
AmqpJmsMessagePropertyIntercepter { public static Set<String> getPropertyNames(AmqpJmsMessageFacade message) { Set<String> names = new HashSet<String>(); for (Entry<String, PropertyIntercepter> entry : PROPERTY_INTERCEPTERS.entrySet()) { if (entry.getValue().propertyExists(message)) { names.add(entry.getKey()); } } return message.getApplicationPropertyNames(names); } }
AmqpJmsMessagePropertyIntercepter { public static Set<String> getPropertyNames(AmqpJmsMessageFacade message) { Set<String> names = new HashSet<String>(); for (Entry<String, PropertyIntercepter> entry : PROPERTY_INTERCEPTERS.entrySet()) { if (entry.getValue().propertyExists(message)) { names.add(entry.getKey()); } } return message.getApplicationPropertyNames(names); }  }
AmqpJmsMessagePropertyIntercepter { public static Set<String> getPropertyNames(AmqpJmsMessageFacade message) { Set<String> names = new HashSet<String>(); for (Entry<String, PropertyIntercepter> entry : PROPERTY_INTERCEPTERS.entrySet()) { if (entry.getValue().propertyExists(message)) { names.add(entry.getKey()); } } return message.getApplicationPropertyNames(names); }  static Object getProperty(AmqpJmsMessageFacade message, String name); static void setProperty(AmqpJmsMessageFacade message, String name, Object value); static boolean propertyExists(AmqpJmsMessageFacade message, String name); static Set<String> getAllPropertyNames(); static Set<String> getPropertyNames(AmqpJmsMessageFacade message); static void clearProperties(AmqpJmsMessageFacade message); }
AmqpJmsMessagePropertyIntercepter { public static Set<String> getPropertyNames(AmqpJmsMessageFacade message) { Set<String> names = new HashSet<String>(); for (Entry<String, PropertyIntercepter> entry : PROPERTY_INTERCEPTERS.entrySet()) { if (entry.getValue().propertyExists(message)) { names.add(entry.getKey()); } } return message.getApplicationPropertyNames(names); }  static Object getProperty(AmqpJmsMessageFacade message, String name); static void setProperty(AmqpJmsMessageFacade message, String name, Object value); static boolean propertyExists(AmqpJmsMessageFacade message, String name); static Set<String> getAllPropertyNames(); static Set<String> getPropertyNames(AmqpJmsMessageFacade message); static void clearProperties(AmqpJmsMessageFacade message);  }