Package org.openbravo.test.modularity
Class DBPrefixTest
- java.lang.Object
-
- org.openbravo.test.base.MockableBaseTest
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.modularity.DBPrefixTest
-
public class DBPrefixTest extends OBBaseTest
This tests check that db prefixes are correctly checked when they are inserted in DB in order not to follow modularity rules
-
-
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 DBPrefixTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteModule()
Deletes all the modules matching the name for the testing onevoid
testAAddDBPrefixValid1()
Add a valid dbprefixes, everything should go ok only alphabetic upper chars.void
testBAddDBPrefixValid2()
alpha numeric chars not starting with a numeric onevoid
testCAddDBPrefixNotValid1()
Add not valid db prefixes starts with numbervoid
testDAddDBPrefixNotValid2()
contains lower case lettersvoid
testEAddDBPrefixNotValid3()
contains underscorevoid
testFAddDBPrefixNotValid4()
contains other non-alphabetic chars.-
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
-
testAAddDBPrefixValid1
public void testAAddDBPrefixValid1()
Add a valid dbprefixes, everything should go ok only alphabetic upper chars. First call to createModule().
-
testBAddDBPrefixValid2
public void testBAddDBPrefixValid2()
alpha numeric chars not starting with a numeric one
-
testCAddDBPrefixNotValid1
public void testCAddDBPrefixNotValid1()
Add not valid db prefixes starts with number
-
testDAddDBPrefixNotValid2
public void testDAddDBPrefixNotValid2()
contains lower case letters
-
testEAddDBPrefixNotValid3
public void testEAddDBPrefixNotValid3()
contains underscore
-
testFAddDBPrefixNotValid4
public void testFAddDBPrefixNotValid4()
contains other non-alphabetic chars. In the end, call to deleteModule
-
deleteModule
public void deleteModule()
Deletes all the modules matching the name for the testing one
-
-