| org.kuali.kfs.context.KualiTestBase org.kuali.module.financial.service.CashDrawerServiceTest
CashDrawerServiceTest | public class CashDrawerServiceTest extends KualiTestBase (Code) | | This class tests the Check service.
|
Method Summary | |
final public void | testCloseCashDrawer_blankWorkgroup() This method tests that calling the closeCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error. | final public void | testCloseCashDrawer_existent() This method tests the closeCashDrawer method under valid conditions. | final public void | testCloseCashDrawer_nonexistent() This method tests that calling the closeCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
will create a new cash drawer and closes it. | final public void | testGetByWorkgroupName_blankWorkgroup() This method tests that trying to retrieve a cash drawer by a workgroup name, when the workgroup name provided is
blank, will generate an error. | final public void | testGetByWorkgroupName_existingWorkgroup() This method tests the getByWorkgroupName method under valid conditions. | final public void | testGetByWorkgroupName_nonexistentWorkgroup() This method tests that trying to retrieve a cash drawer by a workgroup name, when the workgroup does not exist,
will generate an error. | final public void | testLifeCycle() This method tests that all the possible steps during the lifecycle of a cash drawer function properly and are
achievable with the expected results. | final public void | testLockCashDrawer_alreadyLocked() This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer
is already locked, an error is generated. | final public void | testLockCashDrawer_blankWorkgroup() This method tests that calling the lockCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error. | final public void | testLockCashDrawer_closed() This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer
is closed, an error is generated. | final public void | testLockCashDrawer_nonexistent() This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
an error is generated. | final public void | testLockCashDrawer_open() This method tests the lockCashDrawer method under valid conditions. | final public void | testLockCashDrawer_openedByDifferentDocument() This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer
is already opened by another document, an error is generated. | final public void | testOpenCashDrawer() This method tests the openCashDrawer method under valid conditions. | final public void | testOpenCashDrawer_blankDocId() This method tests that calling the openCashDrawer method on a CashDrawerService with a blank document id generates
an error. | final public void | testOpenCashDrawer_blankWorkgroup() This method tests that calling the openCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error. | final public void | testOpenCashDrawer_nonexistent() This method tests that calling the openCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
will create a new cash drawer and open it. | final public void | testUnlockCashDrawer_blankWorkgroup() This method tests that calling the unlockCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error. | final public void | testUnlockCashDrawer_locked() This method tests the unlockCashDrawer method under valid conditions. | final public void | testUnlockCashDrawer_lockedByDifferentDocumentId() This method tests that calling the unlockCashDrawer method on a CashDrawerService, when the cash drawer
is already locked by another document, an error is generated. | final public void | testUnlockCashDrawer_nonexistent() This method tests that calling the unlockCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
an error is generated. | final public void | testUnlockCashDrawer_open() This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer is already open,
an error is generated. |
testCloseCashDrawer_blankWorkgroup | final public void testCloseCashDrawer_blankWorkgroup()(Code) | | This method tests that calling the closeCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error.
|
testCloseCashDrawer_existent | final public void testCloseCashDrawer_existent()(Code) | | This method tests the closeCashDrawer method under valid conditions.
|
testCloseCashDrawer_nonexistent | final public void testCloseCashDrawer_nonexistent()(Code) | | This method tests that calling the closeCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
will create a new cash drawer and closes it.
|
testGetByWorkgroupName_blankWorkgroup | final public void testGetByWorkgroupName_blankWorkgroup()(Code) | | This method tests that trying to retrieve a cash drawer by a workgroup name, when the workgroup name provided is
blank, will generate an error.
|
testGetByWorkgroupName_existingWorkgroup | final public void testGetByWorkgroupName_existingWorkgroup()(Code) | | This method tests the getByWorkgroupName method under valid conditions.
|
testGetByWorkgroupName_nonexistentWorkgroup | final public void testGetByWorkgroupName_nonexistentWorkgroup()(Code) | | This method tests that trying to retrieve a cash drawer by a workgroup name, when the workgroup does not exist,
will generate an error.
|
testLifeCycle | final public void testLifeCycle()(Code) | | This method tests that all the possible steps during the lifecycle of a cash drawer function properly and are
achievable with the expected results.
|
testLockCashDrawer_alreadyLocked | final public void testLockCashDrawer_alreadyLocked()(Code) | | This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer
is already locked, an error is generated.
|
testLockCashDrawer_blankWorkgroup | final public void testLockCashDrawer_blankWorkgroup()(Code) | | This method tests that calling the lockCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error.
|
testLockCashDrawer_closed | final public void testLockCashDrawer_closed()(Code) | | This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer
is closed, an error is generated.
|
testLockCashDrawer_nonexistent | final public void testLockCashDrawer_nonexistent()(Code) | | This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
an error is generated.
|
testLockCashDrawer_open | final public void testLockCashDrawer_open()(Code) | | This method tests the lockCashDrawer method under valid conditions.
|
testLockCashDrawer_openedByDifferentDocument | final public void testLockCashDrawer_openedByDifferentDocument()(Code) | | This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer
is already opened by another document, an error is generated.
|
testOpenCashDrawer | final public void testOpenCashDrawer()(Code) | | This method tests the openCashDrawer method under valid conditions.
|
testOpenCashDrawer_blankDocId | final public void testOpenCashDrawer_blankDocId()(Code) | | This method tests that calling the openCashDrawer method on a CashDrawerService with a blank document id generates
an error.
|
testOpenCashDrawer_blankWorkgroup | final public void testOpenCashDrawer_blankWorkgroup()(Code) | | This method tests that calling the openCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error.
|
testOpenCashDrawer_nonexistent | final public void testOpenCashDrawer_nonexistent()(Code) | | This method tests that calling the openCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
will create a new cash drawer and open it.
|
testUnlockCashDrawer_blankWorkgroup | final public void testUnlockCashDrawer_blankWorkgroup()(Code) | | This method tests that calling the unlockCashDrawer method on a CashDrawerService with a blank workgroup name
generates an error.
|
testUnlockCashDrawer_locked | final public void testUnlockCashDrawer_locked()(Code) | | This method tests the unlockCashDrawer method under valid conditions.
|
testUnlockCashDrawer_lockedByDifferentDocumentId | final public void testUnlockCashDrawer_lockedByDifferentDocumentId()(Code) | | This method tests that calling the unlockCashDrawer method on a CashDrawerService, when the cash drawer
is already locked by another document, an error is generated.
|
testUnlockCashDrawer_nonexistent | final public void testUnlockCashDrawer_nonexistent()(Code) | | This method tests that calling the unlockCashDrawer method on a CashDrawerService, when the cash drawer doesn't exist,
an error is generated.
|
testUnlockCashDrawer_open | final public void testUnlockCashDrawer_open()(Code) | | This method tests that calling the lockCashDrawer method on a CashDrawerService, when the cash drawer is already open,
an error is generated.
|
|
|