@Test public void testMustHaveEither_ProduceDestination() { mustHaveEither("x", (ProduceDestination) null); mustHaveEither(null, new ConfiguredProduceDestination("hello")); }
public static void mustHaveEither(String configured, ConsumeDestination legacy) { if (legacy == null && configured == null) { throw new IllegalArgumentException("Must have string configuration or ConsumeDestination"); } }
DestinationHelper { public static void mustHaveEither(String configured, ConsumeDestination legacy) { if (legacy == null && configured == null) { throw new IllegalArgumentException("Must have string configuration or ConsumeDestination"); } } }
DestinationHelper { public static void mustHaveEither(String configured, ConsumeDestination legacy) { if (legacy == null && configured == null) { throw new IllegalArgumentException("Must have string configuration or ConsumeDestination"); } }  }
DestinationHelper { public static void mustHaveEither(String configured, ConsumeDestination legacy) { if (legacy == null && configured == null) { throw new IllegalArgumentException("Must have string configuration or ConsumeDestination"); } }  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 void mustHaveEither(String configured, ConsumeDestination legacy) { if (legacy == null && configured == null) { throw new IllegalArgumentException("Must have string configuration or ConsumeDestination"); } }  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);  }