/* * Test file for homework 1 * */ import java.io.*; class Test { public static void main(String[] arg) throws IOException { System.out.println("\nCREATING USER..."); User u1 = new User(); // Creates a user using the default constructor u1.setUserName("jdoe"); u1.setRealName("Jane Doe"); u1.setPassword("jane_password"); u1.setEmail("jdoe@hotmail.com"); User u2 = new User("jsmith", "Joe Smith", "password", "jsmith@yahoo.com"); Seller s1 = new Seller("rnelson", "Ron Nelson", "password", "rnelson@yahoo.com", "Visa", "Cool Stuff for Sale"); s1.addItem("bike", "2006 Huffy", 0, 85); System.out.println("Here is the info for " + u1.getUsername() + ":"); u1.printInfo(); // This call should print all information about a user System.out.println("Here is the info for " + u2.getUsername()) + ":"); u2.printInfo(); System.out.println("Here is the info for " + s1.getUsername() + " and their store" + s1.getAuctionStoreName()); s1.printInfo(); // This call should print all information about a seller // including the items they are selling Item i1 = new Item("laptop", "MacBook Pro", 0, 400); s1.addItem(Item i1); } } /******** Output may look as follows: Here is the info for Jane Doe ---------------------------------- User Name: jdoe Real Name: Jane Doe Password: jane_password Email: jdoe@hotmail.com Here is the info for Joe Smith ---------------------------------- User Name: jsmith Real Name: Joe Smith Password: password Email: jsmith@yahoo.com Here is the info for Ron Nelson and their store Cool Stuff for Sale ---------------------------------- User Name: rnelson Real Name: Ron Nelson Password: password Email: rnelson@yahoo.com Item 1 for sale Item Name: bike Description: 2006 huffy High Bid: 0 Buy Now Price: 85 Here is the info for Ron Nelson and their store Cool Stuff for Sale ---------------------------------- User Name: rnelson Real Name: Ron Nelson Password: password Email: rnelson@yahoo.com Item 1 for sale Item Name: bike Description: 2006 huffy High Bid: 0 Buy Now Price: 85 Item 2 for sale Item Name: laptop Description: MacBook Pro High Bid: 0 Buy Now Price: 400 **/