001 package org.cocome.tradingsystem.systests.interfaces; 002 003 /** 004 * The interface for the card reader used to get credit card information and 005 * enter the card pin. 006 * 007 * @author Benjamin Hummel 008 * @author $Author: hummel $ 009 * @version $Rev: 47 $ 010 * @levd.rating GREEN Rev: 47 011 */ 012 public interface ICardReader { 013 014 /** 015 * Reports the number read from the credit card. If the implementation 016 * represents credit card numbers using some specialized data structure, the 017 * test driver is responsible for mapping the integer numbers to those data 018 * structures and back. 019 * 020 * @param cardNumber 021 * the number of the credit card. 022 * 023 */ 024 void enterCard(int cardNumber) throws Exception; 025 026 /** 027 * Reports the pin entered at the card reader. If the implementation 028 * represents pin numbers using some specialized data structure, the test 029 * driver is responsible for mapping the integer numbers to those data 030 * structures and back. 031 * 032 * @param pin 033 * the pin code entered by the user. 034 */ 035 void enterPin(int pin) throws Exception; 036 }