@Test void builderShouldThrowWhenPassingNullRecipient() { assertThatThrownBy(() -> ShareRequest.builder() .message(MESSAGE) .addDocumentId(new Document.DocumentId(UUID.fromString("89bc2e3b-e07e-405f-9520-2de33a0a836c"))) .addRecipient(null) .build()) .isInstanceOf(NullPointerException.class); }
public static RequireMessage builder() { return Builder::new; }
ShareRequest { public static RequireMessage builder() { return Builder::new; } }
ShareRequest { public static RequireMessage builder() { return Builder::new; } private  ShareRequest(List<Recipient> recipients, List<DocumentId> documentIds, String message); }
ShareRequest { public static RequireMessage builder() { return Builder::new; } private  ShareRequest(List<Recipient> recipients, List<DocumentId> documentIds, String message); static RequireMessage builder(); String getMessage(); List<Recipient> getRecipients(); List<String> getDocuments(); @Override final boolean equals(Object o); @Override final int hashCode(); }
ShareRequest { public static RequireMessage builder() { return Builder::new; } private  ShareRequest(List<Recipient> recipients, List<DocumentId> documentIds, String message); static RequireMessage builder(); String getMessage(); List<Recipient> getRecipients(); List<String> getDocuments(); @Override final boolean equals(Object o); @Override final int hashCode();  }