@Test void builderShouldThrowWhenAttachmentIdIsNull() { assertThatThrownBy(() -> AttachmentMetadata.builder() .attachmentId(null)) .isInstanceOf(IllegalArgumentException.class); }
public static Builder builder() { return new Builder(); }
AttachmentMetadata { public static Builder builder() { return new Builder(); } }
AttachmentMetadata { public static Builder builder() { return new Builder(); } private  AttachmentMetadata(AttachmentId attachmentId, ContentType type, long size); }
AttachmentMetadata { public static Builder builder() { return new Builder(); } private  AttachmentMetadata(AttachmentId attachmentId, ContentType type, long size); static Builder builder(); AttachmentId getAttachmentId(); ContentType getType(); long getSize(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
AttachmentMetadata { public static Builder builder() { return new Builder(); } private  AttachmentMetadata(AttachmentId attachmentId, ContentType type, long size); static Builder builder(); AttachmentId getAttachmentId(); ContentType getType(); long getSize(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }