source: src/main/java/negotiator/onetomany/Tester.java@ 207

Last change on this file since 207 was 207, checked in by Tim Baarslag, 6 years ago

One to many negotiation classes

File size: 638 bytes
Line 
1package negotiator.onetomany;
2/**
3 * Used to test the one-to-many negotiation framework
4 */
5public class Tester
6{
7 public static void main(String[] args)
8 {
9 System.out.println("Creating products...");
10 Product redProduct = new Product("Red");
11 Product greenProduct = new Product("Green");
12 Product blueProduct = new Product("Blue");
13
14 System.out.println("Creating a portfolio...");
15 Portfolio portfolio = new Portfolio();
16 portfolio.addProduct(redProduct);
17 portfolio.addProduct(greenProduct);
18 portfolio.addProduct(blueProduct);
19
20 System.out.println("The portfolio is now: " + portfolio);
21 }
22
23}
Note: See TracBrowser for help on using the repository browser.