@Test void fromRabbitWorkQueueNameShouldThrowWhenNull() { assertThatThrownBy(() -> MailQueueName.fromRabbitWorkQueueName(null)) .isInstanceOf(NullPointerException.class); }
static Optional<MailQueueName> fromRabbitWorkQueueName(String workQueueName) { return WorkQueueName.fromString(workQueueName) .map(WorkQueueName::toMailQueueName); }
MailQueueName { static Optional<MailQueueName> fromRabbitWorkQueueName(String workQueueName) { return WorkQueueName.fromString(workQueueName) .map(WorkQueueName::toMailQueueName); } }
MailQueueName { static Optional<MailQueueName> fromRabbitWorkQueueName(String workQueueName) { return WorkQueueName.fromString(workQueueName) .map(WorkQueueName::toMailQueueName); } private  MailQueueName(String name); }
MailQueueName { static Optional<MailQueueName> fromRabbitWorkQueueName(String workQueueName) { return WorkQueueName.fromString(workQueueName) .map(WorkQueueName::toMailQueueName); } private  MailQueueName(String name); static MailQueueName fromString(String name); String asString(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
MailQueueName { static Optional<MailQueueName> fromRabbitWorkQueueName(String workQueueName) { return WorkQueueName.fromString(workQueueName) .map(WorkQueueName::toMailQueueName); } private  MailQueueName(String name); static MailQueueName fromString(String name); String asString(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }