@Test public void testThreadNameAdaptrisMessageListenerConsumeDestination() { String currentThreadName = Thread.currentThread().getName(); assertEquals(currentThreadName, threadName(null, null)); assertEquals("MockMessageListener", threadName(new MockMessageListener(), null)); assertEquals("threadname", threadName(null, new ConfiguredConsumeDestination("dest", "filter", "threadname"))); assertEquals("threadname", threadName(new MockMessageListener(), new ConfiguredConsumeDestination("dest", "filter", "threadname"))); }
public static String threadName(final AdaptrisMessageListener listener, final ConsumeDestination legacy) { return threadName(listener, legacy, Thread.currentThread().getName()); }
DestinationHelper { public static String threadName(final AdaptrisMessageListener listener, final ConsumeDestination legacy) { return threadName(listener, legacy, Thread.currentThread().getName()); } }
DestinationHelper { public static String threadName(final AdaptrisMessageListener listener, final ConsumeDestination legacy) { return threadName(listener, legacy, Thread.currentThread().getName()); }  }
DestinationHelper { public static String threadName(final AdaptrisMessageListener listener, final ConsumeDestination legacy) { return threadName(listener, legacy, Thread.currentThread().getName()); }  static void mustHaveEither(String configured, ConsumeDestination legacy); static void mustHaveEither(String configured, ProduceDestination legacy); static String consumeDestination(final String configured,
      final ConsumeDestination legacy); static String filterExpression(final String configured,
      final ConsumeDestination legacy); static String threadName(final AdaptrisMessageListener listener, final ConsumeDestination legacy); static String threadName(final AdaptrisMessageListener listener,
      final ConsumeDestination legacy, String defaultName); static String resolveProduceDestination(String configured, ProduceDestination legacy,
      AdaptrisMessage msg); @Deprecated static void logConsumeDestinationWarning(boolean alreadyLogged,
      WarningLoggedCallback callback,
      ConsumeDestination d, String text,
      Object... args); static void logWarningIfNotNull(boolean alreadyLogged,
      WarningLoggedCallback callback, Object d, String text, Object... args); }
DestinationHelper { public static String threadName(final AdaptrisMessageListener listener, final ConsumeDestination legacy) { return threadName(listener, legacy, Thread.currentThread().getName()); }  static void mustHaveEither(String configured, ConsumeDestination legacy); static void mustHaveEither(String configured, ProduceDestination legacy); static String consumeDestination(final String configured,
      final ConsumeDestination legacy); static String filterExpression(final String configured,
      final ConsumeDestination legacy); static String threadName(final AdaptrisMessageListener listener, final ConsumeDestination legacy); static String threadName(final AdaptrisMessageListener listener,
      final ConsumeDestination legacy, String defaultName); static String resolveProduceDestination(String configured, ProduceDestination legacy,
      AdaptrisMessage msg); @Deprecated static void logConsumeDestinationWarning(boolean alreadyLogged,
      WarningLoggedCallback callback,
      ConsumeDestination d, String text,
      Object... args); static void logWarningIfNotNull(boolean alreadyLogged,
      WarningLoggedCallback callback, Object d, String text, Object... args);  }