001 package org.cocome.tradingsystem.systests.interfaces; 002 003 /** 004 * Interface for an order. It holds just a single simple method for adding 005 * products to this order. Furthermore it is used as a representation for orders 006 * when passing them to other methods (so an implementation might want to 007 * contain a primary key or something analogous). 008 * 009 * @author Christian Pfaller 010 * @author $Author: hummel $ 011 * @version $Revision: 1.1 $ 012 * @levd.rating GREEN Rev: 47 013 */ 014 public interface IOrder { 015 016 /** 017 * Adds a item to this order. Further data required (e.g. supplier) should 018 * be filled in by the testdriver. 019 * 020 * @param product 021 * the product to order. 022 * @param amount 023 * amount to order. 024 */ 025 public void addOrderItem(IProduct product, int amount) throws Exception; 026 }