Package org.openbravo.test.system
Class TestInfrastructure
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.system.TestInfrastructure
-
public class TestInfrastructure extends OBBaseTest
Test cases to verify test case infrastructure- Author:
- alostale
-
-
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_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 TestInfrastructure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inf001JustCreateAnObject()
Creates a BaseOBObjectvoid
inf002CreatedObjectShouldPresent()
Checks the object created in previous test is still present.void
inf003DeletePreviousObject()
Removes the object created beforevoid
inf004RemovedObjectShouldNotPresent()
Checks the object removed in previous test is not present anymore.-
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
-
-
-
-
Method Detail
-
inf001JustCreateAnObject
public void inf001JustCreateAnObject()
Creates a BaseOBObject
-
inf002CreatedObjectShouldPresent
public void inf002CreatedObjectShouldPresent()
Checks the object created in previous test is still present. This ensures that after correct test completion DAL commit is performed.
-
inf003DeletePreviousObject
public void inf003DeletePreviousObject()
Removes the object created before
-
inf004RemovedObjectShouldNotPresent
public void inf004RemovedObjectShouldNotPresent()
Checks the object removed in previous test is not present anymore. This ensures that after correct test completion DAL commit is performed.
-
-