@Test(expected = IllegalArgumentException.class) public void buildShouldThrowWhenTypeIsEmpty() { Attachment.builder().blobId(BlobId.of("blobId")).type("").name("name").size(123).build(); }
public static Builder builder() { return new Builder(); }
Attachment { public static Builder builder() { return new Builder(); } }
Attachment { public static Builder builder() { return new Builder(); } @VisibleForTesting  Attachment(BlobId blobId, ContentType type, Optional<String> name, Number size, Optional<String> cid, boolean isInline, Optional<Number> width, Optional<Number> height); }
Attachment { public static Builder builder() { return new Builder(); } @VisibleForTesting  Attachment(BlobId blobId, ContentType type, Optional<String> name, Number size, Optional<String> cid, boolean isInline, Optional<Number> width, Optional<Number> height); static Builder builder(); BlobId getBlobId(); ContentType getType(); Optional<String> getName(); Number getSize(); Optional<String> getCid(); boolean isIsInline(); Boolean isInlinedWithCid(); Optional<Number> getWidth(); Optional<Number> getHeight(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
Attachment { public static Builder builder() { return new Builder(); } @VisibleForTesting  Attachment(BlobId blobId, ContentType type, Optional<String> name, Number size, Optional<String> cid, boolean isInline, Optional<Number> width, Optional<Number> height); static Builder builder(); BlobId getBlobId(); ContentType getType(); Optional<String> getName(); Number getSize(); Optional<String> getCid(); boolean isIsInline(); Boolean isInlinedWithCid(); Optional<Number> getWidth(); Optional<Number> getHeight(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }