@Test( expected = NullPointerException.class ) public void testWriteMailDefinitionWithoutDocument() { WriteableDocumentBundle documentBundle = null; MailDefinition report = null; DocumentBundle globalBundle = null; writer.writeMailDefinition( documentBundle, report, globalBundle ); }
public void writeMailDefinition( final WriteableDocumentBundle documentBundle, final MailDefinition report, final DocumentBundle globalBundle ) { if ( documentBundle == null ) { throw new NullPointerException(); } if ( report == null ) { throw new NullPointerException(); } if ( globalBundle == null ) { throw new NullPointerException(); } final WriteableDocumentMetaData data = documentBundle.getWriteableDocumentMetaData(); data.setBundleType( "application/vnd.pentaho.reporting.mailer-definition" ); }
MailDefinitionBundleWriter { public void writeMailDefinition( final WriteableDocumentBundle documentBundle, final MailDefinition report, final DocumentBundle globalBundle ) { if ( documentBundle == null ) { throw new NullPointerException(); } if ( report == null ) { throw new NullPointerException(); } if ( globalBundle == null ) { throw new NullPointerException(); } final WriteableDocumentMetaData data = documentBundle.getWriteableDocumentMetaData(); data.setBundleType( "application/vnd.pentaho.reporting.mailer-definition" ); } }
MailDefinitionBundleWriter { public void writeMailDefinition( final WriteableDocumentBundle documentBundle, final MailDefinition report, final DocumentBundle globalBundle ) { if ( documentBundle == null ) { throw new NullPointerException(); } if ( report == null ) { throw new NullPointerException(); } if ( globalBundle == null ) { throw new NullPointerException(); } final WriteableDocumentMetaData data = documentBundle.getWriteableDocumentMetaData(); data.setBundleType( "application/vnd.pentaho.reporting.mailer-definition" ); } MailDefinitionBundleWriter(); }
MailDefinitionBundleWriter { public void writeMailDefinition( final WriteableDocumentBundle documentBundle, final MailDefinition report, final DocumentBundle globalBundle ) { if ( documentBundle == null ) { throw new NullPointerException(); } if ( report == null ) { throw new NullPointerException(); } if ( globalBundle == null ) { throw new NullPointerException(); } final WriteableDocumentMetaData data = documentBundle.getWriteableDocumentMetaData(); data.setBundleType( "application/vnd.pentaho.reporting.mailer-definition" ); } MailDefinitionBundleWriter(); void writeMailDefinition( final WriteableDocumentBundle documentBundle, final MailDefinition report,
      final DocumentBundle globalBundle ); static void writeReportToZipFile( final MailDefinition report, final File file ); static void writeReportToZipStream( final MailDefinition report, final OutputStream out ); static void writeReportToDirectory( final MailDefinition report, final File file ); }
MailDefinitionBundleWriter { public void writeMailDefinition( final WriteableDocumentBundle documentBundle, final MailDefinition report, final DocumentBundle globalBundle ) { if ( documentBundle == null ) { throw new NullPointerException(); } if ( report == null ) { throw new NullPointerException(); } if ( globalBundle == null ) { throw new NullPointerException(); } final WriteableDocumentMetaData data = documentBundle.getWriteableDocumentMetaData(); data.setBundleType( "application/vnd.pentaho.reporting.mailer-definition" ); } MailDefinitionBundleWriter(); void writeMailDefinition( final WriteableDocumentBundle documentBundle, final MailDefinition report,
      final DocumentBundle globalBundle ); static void writeReportToZipFile( final MailDefinition report, final File file ); static void writeReportToZipStream( final MailDefinition report, final OutputStream out ); static void writeReportToDirectory( final MailDefinition report, final File file );  }