CustomizableEmailRenderer implements EmailRenderer { public static CustomizableEmailRendererBuilder builder() { return new CustomizableEmailRendererBuilder(); }  static CustomizableEmailRendererBuilder builder(); @Override String render(@NonNull final Email email);  }
@Test public void shouldWithToFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withToFormat(null); fail(); }
@Test public void shouldWithCcFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withCcFormat(null); fail(); }
@Test public void shouldWithBccFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withBccFormat(null); fail(); }
@Test public void shouldWithSubjectFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withSubjectFormat(null); fail(); }
@Test public void shouldWithBodyFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withBodyFormat(null); fail(); }
@Test public void shouldWithAttachmentsFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withAttachmentsFormat(null); fail(); }
@Test public void shouldWithEncodingFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withEncodingFormat(null); fail(); }
@Test public void shouldWithLocaleFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withLocaleFormat(null); fail(); }
@Test public void shouldWithSentAtFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withSentAtFormat(null); fail(); }
@Test public void shouldWithReceiptToFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withReceiptToFormat(null); fail(); }
@Test public void shouldWithDepositionNotificationToFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withDepositionNotificationToFormat(null); fail(); }
@Test public void shouldWithFromFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withFromFormat(null); fail(); }
@Test public void shouldWithReplyToFormatThrowExceptionOnNullOperator() throws Exception { expectedException.expect(NullPointerException.class); CustomizableEmailRenderer.builder().withReplyToFormat(null); fail(); }