src/main/java/edu/bu/met/cs665/Main.java
/**
   * This main method tests one of the entities for the email generator
   *
   * @param args not used
   */
This main method tests one of the entities for the email generator

@param args not used
This main method tests one of the entities for the email generator @param args not used
public static void main(String[] args) throws IOException, Exception{
    FactoryProducer object = FactoryProducer.getInstance();
    BuildTheFactories BusinessTest = FactoryProducer.getFactory("Business");
    EmailHeader head1 = BusinessTest.getHeader("BusinessHeader");
    System.out.println("E-mail Header");
    head1.generateNames();
    head1.generateRandomDate();
    head1.generateEncryption();
    System.out.println();
    System.out.println();
    EmailBody body1 = BusinessTest.getBody("BusinessBody");
    body1.readEmailBody();
    body1.encryptBodyOfEmail();
    System.out.println();
    System.out.println();
    FooterAbstractClass footer1 = BusinessTest.getFooter("BusinessFooter");
    footer1.socialMedia();
    footer1.LegalDisclaimer();
  }
public static void main ( String [ ] args ) throws IOException , Exception { FactoryProducer object = FactoryProducer . getInstance ( ) ; BuildTheFactories BusinessTest = FactoryProducer . getFactory ( "Business" ) ; EmailHeader head1 = BusinessTest . getHeader ( "BusinessHeader" ) ; System . out . println ( "E-mail Header" ) ; head1 . generateNames ( ) ; head1 . generateRandomDate ( ) ; head1 . generateEncryption ( ) ; System . out . println ( ) ; System . out . println ( ) ; EmailBody body1 = BusinessTest . getBody ( "BusinessBody" ) ; body1 . readEmailBody ( ) ; body1 . encryptBodyOfEmail ( ) ; System . out . println ( ) ; System . out . println ( ) ; FooterAbstractClass footer1 = BusinessTest . getFooter ( "BusinessFooter" ) ; footer1 . socialMedia ( ) ; footer1 . LegalDisclaimer ( ) ; }
This main method tests one of the entities for the email generator
This main method tests one of the entities for the email generator
//get business factory
 //get header object
 //BODY
 //Footer
