@Test void toRegistrationKeyShouldRejectInvalidValue() { assertThatThrownBy(() -> testee.toRegistrationKey("org.apache.james.mailbox.events.MailboxIdRegistrationKey:invalid")) .isInstanceOf(IllegalArgumentException.class); }
RegistrationKey toRegistrationKey(String routingKey) { return toRegistrationKey(Splitter.on(SEPARATOR).splitToList(routingKey)); }
RoutingKeyConverter { RegistrationKey toRegistrationKey(String routingKey) { return toRegistrationKey(Splitter.on(SEPARATOR).splitToList(routingKey)); } }
RoutingKeyConverter { RegistrationKey toRegistrationKey(String routingKey) { return toRegistrationKey(Splitter.on(SEPARATOR).splitToList(routingKey)); } @Inject  RoutingKeyConverter(Set<RegistrationKey.Factory> factories); }
RoutingKeyConverter { RegistrationKey toRegistrationKey(String routingKey) { return toRegistrationKey(Splitter.on(SEPARATOR).splitToList(routingKey)); } @Inject  RoutingKeyConverter(Set<RegistrationKey.Factory> factories);  }
RoutingKeyConverter { RegistrationKey toRegistrationKey(String routingKey) { return toRegistrationKey(Splitter.on(SEPARATOR).splitToList(routingKey)); } @Inject  RoutingKeyConverter(Set<RegistrationKey.Factory> factories);   }