Package org.openbravo.test.accounting
Class RecordID2Test
- java.lang.Object
-
- org.openbravo.test.base.MockableBaseTest
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.accounting.RecordID2Test
-
public class RecordID2Test extends OBBaseTest
Tests cases to check RecordID2-DateBalanced functionality (Open balances Project)
-
-
Field Summary
-
Fields inherited from class org.openbravo.test.base.OBBaseTest
DOLLAR, DOLLAR_ID, EURO, EURO_ID, QA_TEST_ADMIN_USER_ID, QA_TEST_CLIENT_ID, QA_TEST_ORG_ID, TEST_BP_CATEGORY_ID, TEST_CLIENT_ID, TEST_INVOICE_ID, TEST_LOCATION_ID, TEST_ORDER_ID, TEST_ORG_ID, TEST_ORG_TREE, TEST_PRODUCT_ID, TEST_ROLE_ID, TEST_US_ORG_ID, TEST_USER_ID, TEST_WAREHOUSE_ID, TEST2_USER_ID, userIds, watchFailures
-
-
Constructor Summary
Constructors Constructor Description RecordID2Test()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testRecordID2_case1()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 1: Invoice posted and just reconciliation posted.void
testRecordID2_case2()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 2: Invoice posted and transaction posted.void
testRecordID2_case3()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 3: Invoice posted and payment posted.void
testRecordID2_case4()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 4: Invoice posted , transaction posted and reconciliation posted.void
testRecordID2_case5()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 4: Invoice posted , payment posted and reconciliation posted.-
Methods inherited from class org.openbravo.test.base.OBBaseTest
addReadWriteAccess, classSetUp, commitTransaction, count, getConnectionProvider, getOneInstance, getRandomUser, getTestLogAppender, initializeDalLayer, initializeDisabledTestCases, initializeTestLogAppender, isErrorOccured, reportException, rollback, setLogStackTraces, setQAAdminContext, setSystemAdministratorContext, setTestAdminContext, setTestLogAppenderLevel, setTestUserContext, setUp, setUserContext, shouldMockServletContext, staticInitializeDalLayer, testDone
-
Methods inherited from class org.openbravo.test.base.MockableBaseTest
mockStatic
-
-
-
-
Method Detail
-
testRecordID2_case1
public void testRecordID2_case1()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 1: Invoice posted and just reconciliation posted. After both are posted receivables entry should be balanced Invoice: I/1 Reconciliation: 1000032
-
testRecordID2_case2
public void testRecordID2_case2()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 2: Invoice posted and transaction posted. After both are posted receivables entry should be balanced Invoice: I/10 Transaction: line 50 - 400012 - 02-04-2011 - Customer A - 146.00
-
testRecordID2_case3
public void testRecordID2_case3()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 3: Invoice posted and payment posted. After both are posted receivables entry should be balanced Invoice: I/11 Payment: 400013 - 02-04-2011 - Customer A - 30.00 Then transaction is posted and in transit balance is checked
-
testRecordID2_case4
public void testRecordID2_case4()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 4: Invoice posted , transaction posted and reconciliation posted. After both are posted receivables entry should be balanced Invoice: I/14 Transaction: Accounting Documents EURO - EUR - 400016 - 02-04-2011 - Customer A - 40.00 - 0 Reconciliation: 1000042 . When Transaction and reconciliation are posted in transit account balance should be 0
-
testRecordID2_case5
public void testRecordID2_case5()
Verifies documents can be posted and unposted and that affects fact_acct (RecordID2 and DateBalanced) Case 4: Invoice posted , payment posted and reconciliation posted. After both are posted receivables entry should be balanced. Invoice: I/3 Payment: 400002 Reconciliation: 1000034. When Payment and reconciliation are posted in transit account balance should be 0
-
-