CoCoME System Tests

org.cocome.tradingsystem.systests.util
Class GeneratedProduct

java.lang.Object
  extended by org.cocome.tradingsystem.systests.util.GeneratedProduct

public final class GeneratedProduct
extends java.lang.Object

Simple storage class for generated products.

Version:
$Rev: 60 $
Author:
Benjamin Hummel, Christian Pfaller, $Author: hummel $

Field Summary
(package private)  int barcode
          The barcode of the product.
(package private)  java.lang.String name
          The name of the product.
(package private)  IProduct product
          The product itself.
(package private)  int purchasePrice
          The purchase price of the product in cents.
 
Constructor Summary
GeneratedProduct(int barcode, int purchasePrice, java.lang.String name, IProduct product)
          Create a new instance.
 
Method Summary
 int getBarcode()
          Returns the barcode.
 java.lang.String getName()
          Returns the name.
 IProduct getProduct()
          Returns the product.
 int getPurchasePrice()
          Returns the purchase price in cents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

barcode

final int barcode
The barcode of the product.


purchasePrice

final int purchasePrice
The purchase price of the product in cents.


name

final java.lang.String name
The name of the product.


product

final IProduct product
The product itself.

Constructor Detail

GeneratedProduct

GeneratedProduct(int barcode,
                 int purchasePrice,
                 java.lang.String name,
                 IProduct product)
Create a new instance. This has package visibility, as it should only be generated by the StockGenerator.

Method Detail

getBarcode

public int getBarcode()
Returns the barcode.


getName

public java.lang.String getName()
Returns the name.


getProduct

public IProduct getProduct()
Returns the product.


getPurchasePrice

public int getPurchasePrice()
Returns the purchase price in cents.


CoCoME System Tests

CoCoME System Tests - 0.1