@Test void shouldNotAllowNullName() { Assertions.assertThatThrownBy(() -> MailQueueName.of(null)).isInstanceOf(NullPointerException.class); }
public static MailQueueName of(String value) { Preconditions.checkNotNull(value); Preconditions.checkArgument(!value.isEmpty()); return new MailQueueName(value); }
MailQueueName { public static MailQueueName of(String value) { Preconditions.checkNotNull(value); Preconditions.checkArgument(!value.isEmpty()); return new MailQueueName(value); } }
MailQueueName { public static MailQueueName of(String value) { Preconditions.checkNotNull(value); Preconditions.checkArgument(!value.isEmpty()); return new MailQueueName(value); } private  MailQueueName(String value); }
MailQueueName { public static MailQueueName of(String value) { Preconditions.checkNotNull(value); Preconditions.checkArgument(!value.isEmpty()); return new MailQueueName(value); } private  MailQueueName(String value); static MailQueueName of(String value); String asString(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
MailQueueName { public static MailQueueName of(String value) { Preconditions.checkNotNull(value); Preconditions.checkArgument(!value.isEmpty()); return new MailQueueName(value); } private  MailQueueName(String value); static MailQueueName of(String value); String asString(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }