CoCoME System Tests

org.cocome.tradingsystem.systests.scenarios
Class ProcessSaleInvalidItemIdTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
              extended by org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
                  extended by org.cocome.tradingsystem.systests.scenarios.ProcessSaleInvalidItemIdTest
All Implemented Interfaces:
junit.framework.Test

public class ProcessSaleInvalidItemIdTest
extends ProcessSaleBase

This test covers use case 1 (ProcessSale) with an invalid item id entered (excepetion in step 3).

Version:
$Rev: 64 $
Author:
Christian Pfaller, $Author: hummel $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
TestScenarioBase.StoreWrapper
 
Field Summary
 
Fields inherited from class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
cashBox, cashDesk, currentlySold, expectedAmounts, priceSum, products, store
 
Fields inherited from class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
bank, enterprise, productGenerator, seedRng, stores, testDriver
 
Constructor Summary
ProcessSaleInvalidItemIdTest()
           
 
Method Summary
protected  void enterAllRemainingProducts()
          Executes actions for entering a product where at first the barcode reader send an invalid item id.
 void testScenario()
          Executes the test scenario.
 
Methods inherited from class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
enterProducts, finishSale, handleCashPayment, initializeCashDesk, purchase, setUp, startNewSale, startNewSale, updateInventory
 
Methods inherited from class org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
copySetup, createStore, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessSaleInvalidItemIdTest

public ProcessSaleInvalidItemIdTest()
Method Detail

testScenario

public void testScenario()
                  throws java.lang.Exception
Executes the test scenario.

Throws:
java.lang.Exception

enterAllRemainingProducts

protected void enterAllRemainingProducts()
                                  throws java.lang.Exception,
                                         java.util.concurrent.TimeoutException
Executes actions for entering a product where at first the barcode reader send an invalid item id.

Overrides:
enterAllRemainingProducts in class ProcessSaleBase
Throws:
java.lang.Exception
java.util.concurrent.TimeoutException

CoCoME System Tests

CoCoME System Tests - 0.1