CoCoME System Tests

org.cocome.tradingsystem.systests.scenarios
Class ManageExpressCheckoutTest

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.ManageExpressCheckoutBase
                      extended by org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutTest
All Implemented Interfaces:
junit.framework.Test

public class ManageExpressCheckoutTest
extends ManageExpressCheckoutBase

This test covers use case 2 (ManageExpressCheckout). The system is put to express mode, afterwards express mode lights must be switched on and credit card payment is disabled.

This test checks that credit card payment is not possible anymore.

Version:
$Revision: 1.1 $
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.ManageExpressCheckoutBase
MAXIMUM_ITEMS_AT_EXPRESS_SALE
 
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
ManageExpressCheckoutTest()
           
 
Method Summary
 void testScenario()
          Executes the test scenario.
private  void tryDeactivatedCreditCardPayment()
          Executes actions to confirm credit card payment is inactive
 
Methods inherited from class org.cocome.tradingsystem.systests.scenarios.ManageExpressCheckoutBase
checkExpressModeLightsOn, checkNotificationOfExpressMode, putCashDeskInExpressMode
 
Methods inherited from class org.cocome.tradingsystem.systests.scenarios.ProcessSaleBase
enterAllRemainingProducts, 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

ManageExpressCheckoutTest

public ManageExpressCheckoutTest()
Method Detail

testScenario

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

Specified by:
testScenario in class ManageExpressCheckoutBase
Throws:
java.lang.Exception

tryDeactivatedCreditCardPayment

private void tryDeactivatedCreditCardPayment()
                                      throws java.lang.Exception,
                                             java.util.concurrent.TimeoutException
Executes actions to confirm credit card payment is inactive

Throws:
java.lang.Exception
java.util.concurrent.TimeoutException

CoCoME System Tests

CoCoME System Tests - 0.1